driver core: platform: Remove duplicated device_remove_properties() call
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Fri, 9 Nov 2018 14:21:33 +0000 (17:21 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 26 Nov 2018 17:19:11 +0000 (18:19 +0100)
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>
drivers/base/platform.c

index 41b91af..0fb5f14 100644 (file)
@@ -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) {