diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-07-01 21:31:54 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-07-01 21:31:54 +0000 |
commit | 18be51872917e70e00cb21e018b6bff33162c4f7 (patch) | |
tree | b4cb449586ae3930e2d99dd4c00be2e46229b53c /hw/tmp105.c | |
parent | 9656f324d25895ec16ebc5eaf624e28a96c1f1be (diff) | |
download | qemu-18be51872917e70e00cb21e018b6bff33162c4f7.zip |
Remove duplicate device index calculations.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4818 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/tmp105.c')
-rw-r--r-- | hw/tmp105.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/hw/tmp105.c b/hw/tmp105.c index da26e46715..a4a0103d7b 100644 --- a/hw/tmp105.c +++ b/hw/tmp105.c @@ -228,8 +228,6 @@ void tmp105_reset(i2c_slave *i2c) tmp105_interrupt_update(s); } -static int tmp105_iid = 0; - struct i2c_slave *tmp105_init(i2c_bus *bus, qemu_irq alarm) { struct tmp105_s *s = (struct tmp105_s *) @@ -242,8 +240,7 @@ struct i2c_slave *tmp105_init(i2c_bus *bus, qemu_irq alarm) tmp105_reset(&s->i2c); - register_savevm("TMP105", tmp105_iid ++, 0, - tmp105_save, tmp105_load, s); + register_savevm("TMP105", -1, 0, tmp105_save, tmp105_load, s); return &s->i2c; } |