aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pnp/interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pnp/interface.c')
-rw-r--r--drivers/pnp/interface.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/drivers/pnp/interface.c b/drivers/pnp/interface.c
index e8134c286207..00c8a970a97e 100644
--- a/drivers/pnp/interface.c
+++ b/drivers/pnp/interface.c
@@ -440,16 +440,10 @@ pnp_set_current_resources(struct device *dmdev, struct device_attribute *attr,
440 buf += 3; 440 buf += 3;
441 while (isspace(*buf)) 441 while (isspace(*buf))
442 ++buf; 442 ++buf;
443 pnp_res = pnp_get_pnp_resource(dev, 443 start = simple_strtoul(buf, &buf, 0);
444 IORESOURCE_DMA, ndma); 444 pnp_res = pnp_add_dma_resource(dev, start, 0);
445 if (!pnp_res) 445 if (pnp_res)
446 break; 446 pnp_res->index = ndma++;
447 pnp_res->index = ndma;
448 res = &pnp_res->res;
449 res->start = res->end =
450 simple_strtoul(buf, &buf, 0);
451 res->flags = IORESOURCE_DMA;
452 ndma++;
453 continue; 447 continue;
454 } 448 }
455 break; 449 break;