diff options
Diffstat (limited to 'drivers/pnp/resource.c')
-rw-r--r-- | drivers/pnp/resource.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/pnp/resource.c b/drivers/pnp/resource.c index 5b277dbaacd..e3446ab8b56 100644 --- a/drivers/pnp/resource.c +++ b/drivers/pnp/resource.c | |||
@@ -8,6 +8,7 @@ | |||
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include <linux/module.h> | 10 | #include <linux/module.h> |
11 | #include <linux/slab.h> | ||
11 | #include <linux/errno.h> | 12 | #include <linux/errno.h> |
12 | #include <linux/interrupt.h> | 13 | #include <linux/interrupt.h> |
13 | #include <linux/kernel.h> | 14 | #include <linux/kernel.h> |
@@ -210,6 +211,8 @@ int pnp_check_port(struct pnp_dev *dev, struct resource *res) | |||
210 | if (tres->flags & IORESOURCE_IO) { | 211 | if (tres->flags & IORESOURCE_IO) { |
211 | if (cannot_compare(tres->flags)) | 212 | if (cannot_compare(tres->flags)) |
212 | continue; | 213 | continue; |
214 | if (tres->flags & IORESOURCE_WINDOW) | ||
215 | continue; | ||
213 | tport = &tres->start; | 216 | tport = &tres->start; |
214 | tend = &tres->end; | 217 | tend = &tres->end; |
215 | if (ranged_conflict(port, end, tport, tend)) | 218 | if (ranged_conflict(port, end, tport, tend)) |
@@ -270,6 +273,8 @@ int pnp_check_mem(struct pnp_dev *dev, struct resource *res) | |||
270 | if (tres->flags & IORESOURCE_MEM) { | 273 | if (tres->flags & IORESOURCE_MEM) { |
271 | if (cannot_compare(tres->flags)) | 274 | if (cannot_compare(tres->flags)) |
272 | continue; | 275 | continue; |
276 | if (tres->flags & IORESOURCE_WINDOW) | ||
277 | continue; | ||
273 | taddr = &tres->start; | 278 | taddr = &tres->start; |
274 | tend = &tres->end; | 279 | tend = &tres->end; |
275 | if (ranged_conflict(addr, end, taddr, tend)) | 280 | if (ranged_conflict(addr, end, taddr, tend)) |