diff options
Diffstat (limited to 'drivers/pnp/isapnp')
-rw-r--r-- | drivers/pnp/isapnp/core.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/pnp/isapnp/core.c b/drivers/pnp/isapnp/core.c index 2cf750f077a4..2e5e58c777dd 100644 --- a/drivers/pnp/isapnp/core.c +++ b/drivers/pnp/isapnp/core.c | |||
@@ -973,12 +973,9 @@ static int isapnp_read_resources(struct pnp_dev *dev) | |||
973 | ret = isapnp_read_byte(ISAPNP_CFG_DMA + tmp); | 973 | ret = isapnp_read_byte(ISAPNP_CFG_DMA + tmp); |
974 | if (ret == 4) | 974 | if (ret == 4) |
975 | continue; | 975 | continue; |
976 | pnp_res = pnp_get_pnp_resource(dev, IORESOURCE_DMA, | 976 | pnp_res = pnp_add_dma_resource(dev, ret, 0); |
977 | tmp); | 977 | if (pnp_res) |
978 | pnp_res->index = tmp; | 978 | pnp_res->index = tmp; |
979 | res = &pnp_res->res; | ||
980 | res->start = res->end = ret; | ||
981 | res->flags = IORESOURCE_DMA; | ||
982 | } | 979 | } |
983 | } | 980 | } |
984 | return 0; | 981 | return 0; |