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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pnp/interface.c b/drivers/pnp/interface.c
index e882896bdbd7..cdc3ecfde6ef 100644
--- a/drivers/pnp/interface.c
+++ b/drivers/pnp/interface.c
@@ -351,14 +351,14 @@ pnp_set_current_resources(struct device *dmdev, struct device_attribute *attr,
351 if (!strnicmp(buf, "auto", 4)) { 351 if (!strnicmp(buf, "auto", 4)) {
352 if (dev->active) 352 if (dev->active)
353 goto done; 353 goto done;
354 pnp_init_resource_table(&dev->res); 354 pnp_init_resources(dev);
355 retval = pnp_auto_config_dev(dev); 355 retval = pnp_auto_config_dev(dev);
356 goto done; 356 goto done;
357 } 357 }
358 if (!strnicmp(buf, "clear", 5)) { 358 if (!strnicmp(buf, "clear", 5)) {
359 if (dev->active) 359 if (dev->active)
360 goto done; 360 goto done;
361 pnp_init_resource_table(&dev->res); 361 pnp_init_resources(dev);
362 goto done; 362 goto done;
363 } 363 }
364 if (!strnicmp(buf, "get", 3)) { 364 if (!strnicmp(buf, "get", 3)) {
@@ -373,7 +373,7 @@ pnp_set_current_resources(struct device *dmdev, struct device_attribute *attr,
373 if (dev->active) 373 if (dev->active)
374 goto done; 374 goto done;
375 buf += 3; 375 buf += 3;
376 pnp_init_resource_table(&dev->res); 376 pnp_init_resources(dev);
377 mutex_lock(&pnp_res_mutex); 377 mutex_lock(&pnp_res_mutex);
378 while (1) { 378 while (1) {
379 while (isspace(*buf)) 379 while (isspace(*buf))