|
@@ -668,7 +668,7 @@ lba_fixup_bus(struct pci_bus *bus)
|
|
|
BUG();
|
|
|
}
|
|
|
|
|
|
- if (ldev->hba.elmmio_space.start) {
|
|
|
+ if (ldev->hba.elmmio_space.flags) {
|
|
|
err = request_resource(&iomem_resource,
|
|
|
&(ldev->hba.elmmio_space));
|
|
|
if (err < 0) {
|
|
@@ -993,7 +993,7 @@ lba_pat_resources(struct parisc_device *pa_dev, struct lba_device *lba_dev)
|
|
|
|
|
|
case PAT_LMMIO:
|
|
|
/* used to fix up pre-initialized MEM BARs */
|
|
|
- if (!lba_dev->hba.lmmio_space.start) {
|
|
|
+ if (!lba_dev->hba.lmmio_space.flags) {
|
|
|
sprintf(lba_dev->hba.lmmio_name,
|
|
|
"PCI%02x LMMIO",
|
|
|
(int)lba_dev->hba.bus_num.start);
|
|
@@ -1001,7 +1001,7 @@ lba_pat_resources(struct parisc_device *pa_dev, struct lba_device *lba_dev)
|
|
|
io->start;
|
|
|
r = &lba_dev->hba.lmmio_space;
|
|
|
r->name = lba_dev->hba.lmmio_name;
|
|
|
- } else if (!lba_dev->hba.elmmio_space.start) {
|
|
|
+ } else if (!lba_dev->hba.elmmio_space.flags) {
|
|
|
sprintf(lba_dev->hba.elmmio_name,
|
|
|
"PCI%02x ELMMIO",
|
|
|
(int)lba_dev->hba.bus_num.start);
|
|
@@ -1096,6 +1096,7 @@ lba_legacy_resources(struct parisc_device *pa_dev, struct lba_device *lba_dev)
|
|
|
r->name = "LBA PCI Busses";
|
|
|
r->start = lba_num & 0xff;
|
|
|
r->end = (lba_num>>8) & 0xff;
|
|
|
+ r->flags = IORESOURCE_BUS;
|
|
|
|
|
|
/* Set up local PCI Bus resources - we don't need them for
|
|
|
** Legacy boxes but it's nice to see in /proc/iomem.
|
|
@@ -1494,7 +1495,7 @@ lba_driver_probe(struct parisc_device *dev)
|
|
|
|
|
|
pci_add_resource_offset(&resources, &lba_dev->hba.io_space,
|
|
|
HBA_PORT_BASE(lba_dev->hba.hba_num));
|
|
|
- if (lba_dev->hba.elmmio_space.start)
|
|
|
+ if (lba_dev->hba.elmmio_space.flags)
|
|
|
pci_add_resource_offset(&resources, &lba_dev->hba.elmmio_space,
|
|
|
lba_dev->hba.lmmio_space_offset);
|
|
|
if (lba_dev->hba.lmmio_space.flags)
|