diff options
Diffstat (limited to 'drivers/pnp/support.c')
-rw-r--r-- | drivers/pnp/support.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/pnp/support.c b/drivers/pnp/support.c index 946a0dcd627d..525db2e7d6c7 100644 --- a/drivers/pnp/support.c +++ b/drivers/pnp/support.c | |||
@@ -16,17 +16,14 @@ | |||
16 | * | 16 | * |
17 | */ | 17 | */ |
18 | 18 | ||
19 | int pnp_is_active(struct pnp_dev * dev) | 19 | int pnp_is_active(struct pnp_dev *dev) |
20 | { | 20 | { |
21 | if (!pnp_port_start(dev, 0) && pnp_port_len(dev, 0) <= 1 && | 21 | if (!pnp_port_start(dev, 0) && pnp_port_len(dev, 0) <= 1 && |
22 | !pnp_mem_start(dev, 0) && pnp_mem_len(dev, 0) <= 1 && | 22 | !pnp_mem_start(dev, 0) && pnp_mem_len(dev, 0) <= 1 && |
23 | pnp_irq(dev, 0) == -1 && | 23 | pnp_irq(dev, 0) == -1 && pnp_dma(dev, 0) == -1) |
24 | pnp_dma(dev, 0) == -1) | 24 | return 0; |
25 | return 0; | ||
26 | else | 25 | else |
27 | return 1; | 26 | return 1; |
28 | } | 27 | } |
29 | 28 | ||
30 | |||
31 | |||
32 | EXPORT_SYMBOL(pnp_is_active); | 29 | EXPORT_SYMBOL(pnp_is_active); |