diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2011-01-09 05:03:43 -0500 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2013-11-26 05:09:07 -0500 |
commit | 6112ea0862facaeaeab504ee01c0d04bcd22daaf (patch) | |
tree | 22c2cb929cea94dd7decd0c1756e77684acdc95c /drivers/parport | |
parent | 83b7bce3d390f15047e05a186bb4051536ee9dbc (diff) |
zorro: ZTWO_VADDR() should return "void __iomem *"
ZTWO_VADDR() converts from physical to virtual I/O addresses, so it should
return "void __iomem *" instead of "unsigned long".
This allows to drop several casts, but requires adding a few casts to
accomodate legacy driver frameworks that store "unsigned long" I/O
addresses.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'drivers/parport')
-rw-r--r-- | drivers/parport/parport_mfc3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/parport/parport_mfc3.c b/drivers/parport/parport_mfc3.c index 7578d79b3688..2f650f68af14 100644 --- a/drivers/parport/parport_mfc3.c +++ b/drivers/parport/parport_mfc3.c | |||
@@ -300,7 +300,7 @@ static int __init parport_mfc3_init(void) | |||
300 | if (!request_mem_region(piabase, sizeof(struct pia), "PIA")) | 300 | if (!request_mem_region(piabase, sizeof(struct pia), "PIA")) |
301 | continue; | 301 | continue; |
302 | 302 | ||
303 | pp = (struct pia *)ZTWO_VADDR(piabase); | 303 | pp = ZTWO_VADDR(piabase); |
304 | pp->crb = 0; | 304 | pp->crb = 0; |
305 | pp->pddrb = 255; /* all data pins output */ | 305 | pp->pddrb = 255; /* all data pins output */ |
306 | pp->crb = PIA_DDR|32|8; | 306 | pp->crb = PIA_DDR|32|8; |