diff options
Diffstat (limited to 'drivers/parisc/lba_pci.c')
| -rw-r--r-- | drivers/parisc/lba_pci.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/parisc/lba_pci.c b/drivers/parisc/lba_pci.c index 7fdd80b7eb47..5e495dcbc58a 100644 --- a/drivers/parisc/lba_pci.c +++ b/drivers/parisc/lba_pci.c | |||
| @@ -1288,7 +1288,7 @@ lba_legacy_resources(struct parisc_device *pa_dev, struct lba_device *lba_dev) | |||
| 1288 | ** Adjust "window" for this rope. | 1288 | ** Adjust "window" for this rope. |
| 1289 | */ | 1289 | */ |
| 1290 | rsize /= ROPES_PER_IOC; | 1290 | rsize /= ROPES_PER_IOC; |
| 1291 | r->start += (rsize + 1) * LBA_NUM(pa_dev->hpa); | 1291 | r->start += (rsize + 1) * LBA_NUM(pa_dev->hpa.start); |
| 1292 | r->end = r->start + rsize; | 1292 | r->end = r->start + rsize; |
| 1293 | } else { | 1293 | } else { |
| 1294 | r->end = r->start = 0; /* Not enabled. */ | 1294 | r->end = r->start = 0; /* Not enabled. */ |
| @@ -1458,7 +1458,7 @@ lba_driver_probe(struct parisc_device *dev) | |||
| 1458 | u32 func_class; | 1458 | u32 func_class; |
| 1459 | void *tmp_obj; | 1459 | void *tmp_obj; |
| 1460 | char *version; | 1460 | char *version; |
| 1461 | void __iomem *addr = ioremap(dev->hpa, 4096); | 1461 | void __iomem *addr = ioremap(dev->hpa.start, 4096); |
| 1462 | 1462 | ||
| 1463 | /* Read HW Rev First */ | 1463 | /* Read HW Rev First */ |
| 1464 | func_class = READ_REG32(addr + LBA_FCLASS); | 1464 | func_class = READ_REG32(addr + LBA_FCLASS); |
| @@ -1476,7 +1476,7 @@ lba_driver_probe(struct parisc_device *dev) | |||
| 1476 | } | 1476 | } |
| 1477 | 1477 | ||
| 1478 | printk(KERN_INFO "%s version %s (0x%x) found at 0x%lx\n", | 1478 | printk(KERN_INFO "%s version %s (0x%x) found at 0x%lx\n", |
| 1479 | MODULE_NAME, version, func_class & 0xf, dev->hpa); | 1479 | MODULE_NAME, version, func_class & 0xf, dev->hpa.start); |
| 1480 | 1480 | ||
| 1481 | if (func_class < 2) { | 1481 | if (func_class < 2) { |
| 1482 | printk(KERN_WARNING "Can't support LBA older than " | 1482 | printk(KERN_WARNING "Can't support LBA older than " |
| @@ -1503,17 +1503,17 @@ lba_driver_probe(struct parisc_device *dev) | |||
| 1503 | * but for the mask for func_class. | 1503 | * but for the mask for func_class. |
| 1504 | */ | 1504 | */ |
| 1505 | printk(KERN_INFO "%s version %s (0x%x) found at 0x%lx\n", | 1505 | printk(KERN_INFO "%s version %s (0x%x) found at 0x%lx\n", |
| 1506 | MODULE_NAME, version, func_class & 0xff, dev->hpa); | 1506 | MODULE_NAME, version, func_class & 0xff, dev->hpa.start); |
| 1507 | cfg_ops = &mercury_cfg_ops; | 1507 | cfg_ops = &mercury_cfg_ops; |
| 1508 | } else { | 1508 | } else { |
| 1509 | printk(KERN_ERR "Unknown LBA found at 0x%lx\n", dev->hpa); | 1509 | printk(KERN_ERR "Unknown LBA found at 0x%lx\n", dev->hpa.start); |
| 1510 | return -ENODEV; | 1510 | return -ENODEV; |
| 1511 | } | 1511 | } |
| 1512 | 1512 | ||
| 1513 | /* | 1513 | /* |
| 1514 | ** Tell I/O SAPIC driver we have a IRQ handler/region. | 1514 | ** Tell I/O SAPIC driver we have a IRQ handler/region. |
| 1515 | */ | 1515 | */ |
| 1516 | tmp_obj = iosapic_register(dev->hpa + LBA_IOSAPIC_BASE); | 1516 | tmp_obj = iosapic_register(dev->hpa.start + LBA_IOSAPIC_BASE); |
| 1517 | 1517 | ||
| 1518 | /* NOTE: PCI devices (e.g. 103c:1005 graphics card) which don't | 1518 | /* NOTE: PCI devices (e.g. 103c:1005 graphics card) which don't |
| 1519 | ** have an IRT entry will get NULL back from iosapic code. | 1519 | ** have an IRT entry will get NULL back from iosapic code. |
| @@ -1635,7 +1635,7 @@ void __init lba_init(void) | |||
| 1635 | */ | 1635 | */ |
| 1636 | void lba_set_iregs(struct parisc_device *lba, u32 ibase, u32 imask) | 1636 | void lba_set_iregs(struct parisc_device *lba, u32 ibase, u32 imask) |
| 1637 | { | 1637 | { |
| 1638 | void __iomem * base_addr = ioremap(lba->hpa, 4096); | 1638 | void __iomem * base_addr = ioremap(lba->hpa.start, 4096); |
| 1639 | 1639 | ||
| 1640 | imask <<= 2; /* adjust for hints - 2 more bits */ | 1640 | imask <<= 2; /* adjust for hints - 2 more bits */ |
| 1641 | 1641 | ||
