diff options
author | Heikki Krogerus <heikki.krogerus@linux.intel.com> | 2018-11-09 09:21:33 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-11-26 12:19:11 -0500 |
commit | 2d51ac9086fd4852c1e43d615bd8dd99f2a616eb (patch) | |
tree | 417654e37ae8f49f82bf3077f594ea4b5cb9ac68 /drivers/base/platform.c | |
parent | 2e6e902d185027f8e3cb8b7305238f7e35d6a436 (diff) |
driver core: platform: Remove duplicated device_remove_properties() call
device_remove_properties() is called for every device in device_del().
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/base/platform.c')
-rw-r--r-- | drivers/base/platform.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/base/platform.c b/drivers/base/platform.c index 41b91af95afb..0fb5f140f1b0 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c | |||
@@ -448,7 +448,6 @@ void platform_device_del(struct platform_device *pdev) | |||
448 | int i; | 448 | int i; |
449 | 449 | ||
450 | if (pdev) { | 450 | if (pdev) { |
451 | device_remove_properties(&pdev->dev); | ||
452 | device_del(&pdev->dev); | 451 | device_del(&pdev->dev); |
453 | 452 | ||
454 | if (pdev->id_auto) { | 453 | if (pdev->id_auto) { |