mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[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 <[email protected]> Fix up users of ->hpa to use ->hpa.start instead. Signed-off-by: Matthew Wilcox <[email protected]> Signed-off-by: Kyle McMartin <[email protected]>
This commit is contained in:
parent
bdad1f836a
commit
53f01bba49
23 changed files with 60 additions and 55 deletions
|
|
@ -278,11 +278,11 @@ static int __init
|
|||
hil_init_chip(struct parisc_device *dev)
|
||||
{
|
||||
if (!dev->irq) {
|
||||
printk(KERN_WARNING "HIL: IRQ not found for HIL bus at 0x%08lx\n", dev->hpa);
|
||||
printk(KERN_WARNING "HIL: IRQ not found for HIL bus at 0x%08lx\n", dev->hpa.start);
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
hil_base = dev->hpa;
|
||||
hil_base = dev->hpa.start;
|
||||
hil_irq = dev->irq;
|
||||
hil_dev.dev_id = dev;
|
||||
|
||||
|
|
|
|||
|
|
@ -331,7 +331,7 @@ static int __init gscps2_probe(struct parisc_device *dev)
|
|||
{
|
||||
struct gscps2port *ps2port;
|
||||
struct serio *serio;
|
||||
unsigned long hpa = dev->hpa;
|
||||
unsigned long hpa = dev->hpa.start;
|
||||
int ret;
|
||||
|
||||
if (!dev->irq)
|
||||
|
|
|
|||
|
|
@ -875,9 +875,9 @@ static int __init hp_sdc_init_hppa(struct parisc_device *d)
|
|||
hp_sdc.dev = d;
|
||||
hp_sdc.irq = d->irq;
|
||||
hp_sdc.nmi = d->aux_irq;
|
||||
hp_sdc.base_io = d->hpa;
|
||||
hp_sdc.data_io = d->hpa + 0x800;
|
||||
hp_sdc.status_io = d->hpa + 0x801;
|
||||
hp_sdc.base_io = d->hpa.start;
|
||||
hp_sdc.data_io = d->hpa.start + 0x800;
|
||||
hp_sdc.status_io = d->hpa.start + 0x801;
|
||||
|
||||
return hp_sdc_init();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue