summaryrefslogtreecommitdiff
path: root/drivers/base/platform.c
diff options
context:
space:
mode:
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>2018-11-09 17:21:33 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-11-26 20:19:11 +0300
commit2d51ac9086fd4852c1e43d615bd8dd99f2a616eb (patch)
tree417654e37ae8f49f82bf3077f594ea4b5cb9ac68 /drivers/base/platform.c
parent2e6e902d185027f8e3cb8b7305238f7e35d6a436 (diff)
downloadlinux-2d51ac9086fd4852c1e43d615bd8dd99f2a616eb.tar.xz
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.c1
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)
int i;
if (pdev) {
- device_remove_properties(&pdev->dev);
device_del(&pdev->dev);
if (pdev->id_auto) {