aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/base/platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/platform.c b/drivers/base/platform.c
index 8827dafba945..1091af1cbb58 100644
--- a/drivers/base/platform.c
+++ b/drivers/base/platform.c
@@ -257,7 +257,7 @@ int platform_device_add(struct platform_device *pdev)
257 p = &ioport_resource; 257 p = &ioport_resource;
258 } 258 }
259 259
260 if (p && request_resource(p, r)) { 260 if (p && insert_resource(p, r)) {
261 printk(KERN_ERR 261 printk(KERN_ERR
262 "%s: failed to claim resource %d\n", 262 "%s: failed to claim resource %d\n",
263 pdev->dev.bus_id, i); 263 pdev->dev.bus_id, i);