diff options
Diffstat (limited to 'drivers/pnp/resource.c')
-rw-r--r-- | drivers/pnp/resource.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/pnp/resource.c b/drivers/pnp/resource.c index 6ded527169f4..5c8ec21e1086 100644 --- a/drivers/pnp/resource.c +++ b/drivers/pnp/resource.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | */ | 7 | */ |
8 | 8 | ||
9 | #include <linux/config.h> | ||
10 | #include <linux/module.h> | 9 | #include <linux/module.h> |
11 | #include <linux/errno.h> | 10 | #include <linux/errno.h> |
12 | #include <linux/interrupt.h> | 11 | #include <linux/interrupt.h> |
@@ -241,7 +240,7 @@ int pnp_check_port(struct pnp_dev * dev, int idx) | |||
241 | { | 240 | { |
242 | int tmp; | 241 | int tmp; |
243 | struct pnp_dev *tdev; | 242 | struct pnp_dev *tdev; |
244 | unsigned long *port, *end, *tport, *tend; | 243 | resource_size_t *port, *end, *tport, *tend; |
245 | port = &dev->res.port_resource[idx].start; | 244 | port = &dev->res.port_resource[idx].start; |
246 | end = &dev->res.port_resource[idx].end; | 245 | end = &dev->res.port_resource[idx].end; |
247 | 246 | ||
@@ -297,7 +296,7 @@ int pnp_check_mem(struct pnp_dev * dev, int idx) | |||
297 | { | 296 | { |
298 | int tmp; | 297 | int tmp; |
299 | struct pnp_dev *tdev; | 298 | struct pnp_dev *tdev; |
300 | unsigned long *addr, *end, *taddr, *tend; | 299 | resource_size_t *addr, *end, *taddr, *tend; |
301 | addr = &dev->res.mem_resource[idx].start; | 300 | addr = &dev->res.mem_resource[idx].start; |
302 | end = &dev->res.mem_resource[idx].end; | 301 | end = &dev->res.mem_resource[idx].end; |
303 | 302 | ||
@@ -358,7 +357,7 @@ int pnp_check_irq(struct pnp_dev * dev, int idx) | |||
358 | { | 357 | { |
359 | int tmp; | 358 | int tmp; |
360 | struct pnp_dev *tdev; | 359 | struct pnp_dev *tdev; |
361 | unsigned long * irq = &dev->res.irq_resource[idx].start; | 360 | resource_size_t * irq = &dev->res.irq_resource[idx].start; |
362 | 361 | ||
363 | /* if the resource doesn't exist, don't complain about it */ | 362 | /* if the resource doesn't exist, don't complain about it */ |
364 | if (cannot_compare(dev->res.irq_resource[idx].flags)) | 363 | if (cannot_compare(dev->res.irq_resource[idx].flags)) |
@@ -396,7 +395,8 @@ int pnp_check_irq(struct pnp_dev * dev, int idx) | |||
396 | /* check if the resource is already in use, skip if the | 395 | /* check if the resource is already in use, skip if the |
397 | * device is active because it itself may be in use */ | 396 | * device is active because it itself may be in use */ |
398 | if(!dev->active) { | 397 | if(!dev->active) { |
399 | if (request_irq(*irq, pnp_test_handler, SA_INTERRUPT, "pnp", NULL)) | 398 | if (request_irq(*irq, pnp_test_handler, |
399 | IRQF_DISABLED|IRQF_PROBE_SHARED, "pnp", NULL)) | ||
400 | return 0; | 400 | return 0; |
401 | free_irq(*irq, NULL); | 401 | free_irq(*irq, NULL); |
402 | } | 402 | } |
@@ -423,7 +423,7 @@ int pnp_check_dma(struct pnp_dev * dev, int idx) | |||
423 | #ifndef CONFIG_IA64 | 423 | #ifndef CONFIG_IA64 |
424 | int tmp; | 424 | int tmp; |
425 | struct pnp_dev *tdev; | 425 | struct pnp_dev *tdev; |
426 | unsigned long * dma = &dev->res.dma_resource[idx].start; | 426 | resource_size_t * dma = &dev->res.dma_resource[idx].start; |
427 | 427 | ||
428 | /* if the resource doesn't exist, don't complain about it */ | 428 | /* if the resource doesn't exist, don't complain about it */ |
429 | if (cannot_compare(dev->res.dma_resource[idx].flags)) | 429 | if (cannot_compare(dev->res.dma_resource[idx].flags)) |