diff options
Diffstat (limited to 'drivers/pnp')
-rw-r--r-- | drivers/pnp/quirks.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/pnp/quirks.c b/drivers/pnp/quirks.c index ebf0d6710b5a..943c1cb9566c 100644 --- a/drivers/pnp/quirks.c +++ b/drivers/pnp/quirks.c | |||
@@ -246,13 +246,16 @@ static void quirk_system_pci_resources(struct pnp_dev *dev) | |||
246 | */ | 246 | */ |
247 | for_each_pci_dev(pdev) { | 247 | for_each_pci_dev(pdev) { |
248 | for (i = 0; i < DEVICE_COUNT_RESOURCE; i++) { | 248 | for (i = 0; i < DEVICE_COUNT_RESOURCE; i++) { |
249 | unsigned long type; | 249 | unsigned long flags, type; |
250 | 250 | ||
251 | type = pci_resource_flags(pdev, i) & | 251 | flags = pci_resource_flags(pdev, i); |
252 | (IORESOURCE_IO | IORESOURCE_MEM); | 252 | type = flags & (IORESOURCE_IO | IORESOURCE_MEM); |
253 | if (!type || pci_resource_len(pdev, i) == 0) | 253 | if (!type || pci_resource_len(pdev, i) == 0) |
254 | continue; | 254 | continue; |
255 | 255 | ||
256 | if (flags & IORESOURCE_UNSET) | ||
257 | continue; | ||
258 | |||
256 | pci_start = pci_resource_start(pdev, i); | 259 | pci_start = pci_resource_start(pdev, i); |
257 | pci_end = pci_resource_end(pdev, i); | 260 | pci_end = pci_resource_end(pdev, i); |
258 | for (j = 0; | 261 | for (j = 0; |