aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pnp/isapnp
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2008-04-28 18:34:34 -0400
committerLen Brown <len.brown@intel.com>2008-04-29 03:22:28 -0400
commitdbddd0383c59d588f8db5e773b062756e39117ec (patch)
tree77009fb218b4fc21090ae83105aa0f84664ae61c /drivers/pnp/isapnp
parenta50b6d7b8d7e1a8b13bd1be65a865b115e1190d9 (diff)
PNP: make generic pnp_add_irq_resource()
Add a pnp_add_irq_resource() that can be used by all the PNP backends. This consolidates a little more pnp_resource_table knowledge into one place. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Len Brown <len.brown@intel.com>
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);