[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
@@ -1600,7 +1600,7 @@ sba_ioc_init(struct parisc_device *sba, struct ioc *ioc, int ioc_num)
|
||||
|
||||
static void __iomem *ioc_remap(struct sba_device *sba_dev, int offset)
|
||||
{
|
||||
return ioremap(sba_dev->dev->hpa + offset, SBA_FUNC_SIZE);
|
||||
return ioremap(sba_dev->dev->hpa.start + offset, SBA_FUNC_SIZE);
|
||||
}
|
||||
|
||||
static void sba_hw_init(struct sba_device *sba_dev)
|
||||
@@ -1978,7 +1978,7 @@ sba_driver_callback(struct parisc_device *dev)
|
||||
u32 func_class;
|
||||
int i;
|
||||
char *version;
|
||||
void __iomem *sba_addr = ioremap(dev->hpa, SBA_FUNC_SIZE);
|
||||
void __iomem *sba_addr = ioremap(dev->hpa.start, SBA_FUNC_SIZE);
|
||||
|
||||
sba_dump_ranges(sba_addr);
|
||||
|
||||
@@ -2020,7 +2020,7 @@ sba_driver_callback(struct parisc_device *dev)
|
||||
}
|
||||
|
||||
printk(KERN_INFO "%s found %s at 0x%lx\n",
|
||||
MODULE_NAME, version, dev->hpa);
|
||||
MODULE_NAME, version, dev->hpa.start);
|
||||
|
||||
sba_dev = kmalloc(sizeof(struct sba_device), GFP_KERNEL);
|
||||
if (!sba_dev) {
|
||||
|
Reference in New Issue
Block a user