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>
Tento commit je obsažen v:
@@ -310,7 +310,7 @@ static int gvp11_probe(struct zorro_dev *z, const struct zorro_device_id *ent)
|
||||
if (!request_mem_region(address, 256, "wd33c93"))
|
||||
return -EBUSY;
|
||||
|
||||
regs = (struct gvp11_scsiregs *)(ZTWO_VADDR(address));
|
||||
regs = ZTWO_VADDR(address);
|
||||
|
||||
error = check_wd33c93(regs);
|
||||
if (error)
|
||||
|
Odkázat v novém úkolu
Zablokovat Uživatele