summaryrefslogtreecommitdiffstats
path: root/hw/ads7846.c
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-01 21:31:54 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-01 21:31:54 +0000
commit18be51872917e70e00cb21e018b6bff33162c4f7 (patch)
treeb4cb449586ae3930e2d99dd4c00be2e46229b53c /hw/ads7846.c
parent9656f324d25895ec16ebc5eaf624e28a96c1f1be (diff)
downloadhqemu-18be51872917e70e00cb21e018b6bff33162c4f7.zip
hqemu-18be51872917e70e00cb21e018b6bff33162c4f7.tar.gz
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/ads7846.c')
-rw-r--r--hw/ads7846.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/hw/ads7846.c b/hw/ads7846.c
index 578bb54..b39c00f 100644
--- a/hw/ads7846.c
+++ b/hw/ads7846.c
@@ -140,8 +140,6 @@ static int ads7846_load(QEMUFile *f, void *opaque, int version_id)
return 0;
}
-static int ads7846_iid = 0;
-
struct ads7846_state_s *ads7846_init(qemu_irq penirq)
{
struct ads7846_state_s *s;
@@ -162,8 +160,7 @@ struct ads7846_state_s *ads7846_init(qemu_irq penirq)
ads7846_int_update(s);
- register_savevm("ads7846", ads7846_iid ++, 0,
- ads7846_save, ads7846_load, s);
+ register_savevm("ads7846", -1, 0, ads7846_save, ads7846_load, s);
return s;
}
OpenPOWER on IntegriCloud