aboutsummaryrefslogtreecommitdiff
path: root/hw/pxa2xx_keypad.c
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-16 12:19:43 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-16 12:19:43 +0000
commitbd464c2eef04b322a34517cb9886b12bbc045cd1 (patch)
treecada681a0e8bc79319249b0fb2a163b760d24479 /hw/pxa2xx_keypad.c
parent31b87f2eeb928657d8f5f9202d5f62ea55d7dd9c (diff)
Mainstone keypad support, by Armin Kuster.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3819 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/pxa2xx_keypad.c')
-rw-r--r--hw/pxa2xx_keypad.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/pxa2xx_keypad.c b/hw/pxa2xx_keypad.c
index 3bd988a21b..b67b2cb845 100644
--- a/hw/pxa2xx_keypad.c
+++ b/hw/pxa2xx_keypad.c
@@ -321,7 +321,7 @@ struct pxa2xx_keypad_s *pxa27x_keypad_init(target_phys_addr_t base,
iomemtype = cpu_register_io_memory(0, pxa2xx_keypad_readfn,
pxa2xx_keypad_writefn, s);
- cpu_register_physical_memory(base, 0x00100000, iomemtype);////check size
+ cpu_register_physical_memory(base, 0x00100000, iomemtype);
register_savevm("pxa2xx_keypad", 0, 0,
pxa2xx_keypad_save, pxa2xx_keypad_load, s);
@@ -334,7 +334,7 @@ void pxa27x_register_keypad(struct pxa2xx_keypad_s *kp, struct keymap *map,
{
kp->map = (struct keymap *) qemu_mallocz(sizeof(struct keymap) * size);
- if(!map || size < 80) {
+ if(!map || size < 0x80) {
fprintf(stderr, "%s - No PXA keypad map defined\n", __FUNCTION__);
exit(-1);
}