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>
此提交包含在:
@@ -220,7 +220,7 @@ static int __init amiga_a3000_scsi_probe(struct platform_device *pdev)
|
||||
|
||||
instance->irq = IRQ_AMIGA_PORTS;
|
||||
|
||||
regs = (struct a3000_scsiregs *)ZTWO_VADDR(res->start);
|
||||
regs = ZTWO_VADDR(res->start);
|
||||
regs->DAWR = DAWR_A3000;
|
||||
|
||||
wdregs.SASR = ®s->SASR;
|
||||
|
新增問題並參考
封鎖使用者