aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pnp/isapnp
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pnp/isapnp')
-rw-r--r--drivers/pnp/isapnp/core.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/pnp/isapnp/core.c b/drivers/pnp/isapnp/core.c
index f949a538ccde..2cf750f077a4 100644
--- a/drivers/pnp/isapnp/core.c
+++ b/drivers/pnp/isapnp/core.c
@@ -965,12 +965,9 @@ static int isapnp_read_resources(struct pnp_dev *dev)
965 8); 965 8);
966 if (!ret) 966 if (!ret)
967 continue; 967 continue;
968 pnp_res = pnp_get_pnp_resource(dev, IORESOURCE_IRQ, 968 pnp_res = pnp_add_irq_resource(dev, ret, 0);
969 tmp); 969 if (pnp_res)
970 pnp_res->index = tmp; 970 pnp_res->index = tmp;
971 res = &pnp_res->res;
972 res->start = res->end = ret;
973 res->flags = IORESOURCE_IRQ;
974 } 971 }
975 for (tmp = 0; tmp < ISAPNP_MAX_DMA; tmp++) { 972 for (tmp = 0; tmp < ISAPNP_MAX_DMA; tmp++) {
976 ret = isapnp_read_byte(ISAPNP_CFG_DMA + tmp); 973 ret = isapnp_read_byte(ISAPNP_CFG_DMA + tmp);