diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/base/platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/platform.c b/drivers/base/platform.c index f8071976fe07..2b8755db76c6 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c | |||
@@ -275,7 +275,7 @@ int platform_device_add(struct platform_device *pdev) | |||
275 | pr_debug("Registering platform device '%s'. Parent at %s\n", | 275 | pr_debug("Registering platform device '%s'. Parent at %s\n", |
276 | pdev->dev.bus_id, pdev->dev.parent->bus_id); | 276 | pdev->dev.bus_id, pdev->dev.parent->bus_id); |
277 | 277 | ||
278 | ret = device_register(&pdev->dev); | 278 | ret = device_add(&pdev->dev); |
279 | if (ret == 0) | 279 | if (ret == 0) |
280 | return ret; | 280 | return ret; |
281 | 281 | ||