|
@@ -49,6 +49,8 @@ static void pcibios_scanbus(struct pci_channel *hose)
|
|
for (i = 0; i < hose->nr_resources; i++) {
|
|
for (i = 0; i < hose->nr_resources; i++) {
|
|
res = hose->resources + i;
|
|
res = hose->resources + i;
|
|
offset = 0;
|
|
offset = 0;
|
|
|
|
+ if (res->flags & IORESOURCE_DISABLED)
|
|
|
|
+ continue;
|
|
if (res->flags & IORESOURCE_IO)
|
|
if (res->flags & IORESOURCE_IO)
|
|
offset = hose->io_offset;
|
|
offset = hose->io_offset;
|
|
else if (res->flags & IORESOURCE_MEM)
|
|
else if (res->flags & IORESOURCE_MEM)
|
|
@@ -102,6 +104,9 @@ int register_pci_controller(struct pci_channel *hose)
|
|
for (i = 0; i < hose->nr_resources; i++) {
|
|
for (i = 0; i < hose->nr_resources; i++) {
|
|
struct resource *res = hose->resources + i;
|
|
struct resource *res = hose->resources + i;
|
|
|
|
|
|
|
|
+ if (res->flags & IORESOURCE_DISABLED)
|
|
|
|
+ continue;
|
|
|
|
+
|
|
if (res->flags & IORESOURCE_IO) {
|
|
if (res->flags & IORESOURCE_IO) {
|
|
if (request_resource(&ioport_resource, res) < 0)
|
|
if (request_resource(&ioport_resource, res) < 0)
|
|
goto out;
|
|
goto out;
|