aboutsummaryrefslogtreecommitdiff
path: root/hw/gumstix.c
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2011-01-21 19:57:50 +0300
committerAndrzej Zaborowski <balrog@zabor.org>2011-01-29 14:06:07 +0100
commit0bb533374a110f22412d95e75768afb8212f8243 (patch)
tree341eea6845f72e5af2f58f6eeda39e4aa829ad90 /hw/gumstix.c
parent7ef4227baae2cdd460bfe714393cb8e7e4cff354 (diff)
downloadqemu-0bb533374a110f22412d95e75768afb8212f8243.zip
qemu-0bb533374a110f22412d95e75768afb8212f8243.tar.gz
qemu-0bb533374a110f22412d95e75768afb8212f8243.tar.bz2
pxa2xx_gpio: switch to using qdev
As noted by Markus Armbruster pxa2xx_gpio vmstate version bumped because of a change in the or .ilevel / .olevel arrays are saved, for convenience. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
Diffstat (limited to 'hw/gumstix.c')
-rw-r--r--hw/gumstix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/gumstix.c b/hw/gumstix.c
index af8b464..ee63f63 100644
--- a/hw/gumstix.c
+++ b/hw/gumstix.c
@@ -78,7 +78,7 @@ static void connex_init(ram_addr_t ram_size,
/* Interrupt line of NIC is connected to GPIO line 36 */
smc91c111_init(&nd_table[0], 0x04000300,
- pxa2xx_gpio_in_get(cpu->gpio)[36]);
+ qdev_get_gpio_in(cpu->gpio, 36));
}
static void verdex_init(ram_addr_t ram_size,
@@ -117,7 +117,7 @@ static void verdex_init(ram_addr_t ram_size,
/* Interrupt line of NIC is connected to GPIO line 99 */
smc91c111_init(&nd_table[0], 0x04000300,
- pxa2xx_gpio_in_get(cpu->gpio)[99]);
+ qdev_get_gpio_in(cpu->gpio, 99));
}
static QEMUMachine connex_machine = {