mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-05-17 15:28:31 +00: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 <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
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user