Skip to content

Commit

Permalink
driver core: platform: Remove duplicated device_remove_properties() call
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Heikki Krogerus authored and Rafael J. Wysocki committed Nov 26, 2018
1 parent 2e6e902 commit 2d51ac9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/base/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2d51ac9

Please sign in to comment.