[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
@ -1546,7 +1546,7 @@ static int ccio_probe(struct parisc_device *dev)
|
||||
|
||||
ioc->name = dev->id.hversion == U2_IOA_RUNWAY ? "U2" : "UTurn";
|
||||
|
||||
printk(KERN_INFO "Found %s at 0x%lx\n", ioc->name, dev->hpa);
|
||||
printk(KERN_INFO "Found %s at 0x%lx\n", ioc->name, dev->hpa.start);
|
||||
|
||||
for (i = 0; i < ioc_count; i++) {
|
||||
ioc_p = &(*ioc_p)->next;
|
||||
@ -1554,7 +1554,7 @@ static int ccio_probe(struct parisc_device *dev)
|
||||
*ioc_p = ioc;
|
||||
|
||||
ioc->hw_path = dev->hw_path;
|
||||
ioc->ioc_hpa = (struct ioa_registers *)dev->hpa;
|
||||
ioc->ioc_regs = ioremap(dev->hpa.start, 4096);
|
||||
ccio_ioc_init(ioc);
|
||||
ccio_init_resources(ioc);
|
||||
hppa_dma_ops = &ccio_ops;
|
||||
|
Reference in New Issue
Block a user