aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/pnp/quirks.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/pnp/quirks.c b/drivers/pnp/quirks.c
index e4daf4635c48..c47dd252f449 100644
--- a/drivers/pnp/quirks.c
+++ b/drivers/pnp/quirks.c
@@ -117,6 +117,7 @@ static void quirk_sb16audio_resources(struct pnp_dev *dev)
117static void quirk_system_pci_resources(struct pnp_dev *dev) 117static void quirk_system_pci_resources(struct pnp_dev *dev)
118{ 118{
119 struct pci_dev *pdev = NULL; 119 struct pci_dev *pdev = NULL;
120 struct resource *res;
120 resource_size_t pnp_start, pnp_end, pci_start, pci_end; 121 resource_size_t pnp_start, pnp_end, pci_start, pci_end;
121 int i, j; 122 int i, j;
122 123
@@ -176,7 +177,8 @@ static void quirk_system_pci_resources(struct pnp_dev *dev)
176 pci_name(pdev), i, 177 pci_name(pdev), i,
177 (unsigned long long) pci_start, 178 (unsigned long long) pci_start,
178 (unsigned long long) pci_end); 179 (unsigned long long) pci_end);
179 pnp_mem_flags(dev, j) = 0; 180 res = pnp_get_resource(dev, IORESOURCE_MEM, j);
181 res->flags = 0;
180 } 182 }
181 } 183 }
182 } 184 }