[PARISC] Convert parisc_device to use struct resource for hpa
Convert pa_dev->hpa from an unsigned long to a struct resource. Signed-off-by: Matthew Wilcox <willy@parisc-linux.org> Fix up users of ->hpa to use ->hpa.start instead. Signed-off-by: Matthew Wilcox <willy@parisc-linux.org> Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
This commit is contained in:

committed by
Kyle McMartin

parent
bdad1f836a
commit
53f01bba49
@@ -1528,17 +1528,18 @@ lan_init_chip(struct parisc_device *dev)
|
||||
|
||||
if (!dev->irq) {
|
||||
printk(KERN_ERR "%s: IRQ not found for i82596 at 0x%lx\n",
|
||||
__FILE__, dev->hpa);
|
||||
__FILE__, dev->hpa.start);
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
printk(KERN_INFO "Found i82596 at 0x%lx, IRQ %d\n", dev->hpa, dev->irq);
|
||||
printk(KERN_INFO "Found i82596 at 0x%lx, IRQ %d\n", dev->hpa.start,
|
||||
dev->irq);
|
||||
|
||||
netdevice = alloc_etherdev(0);
|
||||
if (!netdevice)
|
||||
return -ENOMEM;
|
||||
|
||||
netdevice->base_addr = dev->hpa;
|
||||
netdevice->base_addr = dev->hpa.start;
|
||||
netdevice->irq = dev->irq;
|
||||
|
||||
retval = i82596_probe(netdevice, &dev->dev);
|
||||
|
Reference in New Issue
Block a user