Commit 3559c327 authored by Suzuki K Poulose's avatar Suzuki K Poulose Committed by Corey Minyard

drivers: ipmi: Drop device reference

Drop the reference to a device found via bus_find_device()

Cc: Corey Minyard <minyard@acm.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
Message-Id: <1559577023-558-3-git-send-email-suzuki.poulose@arm.com>
[Moved the put_device() to after the platform_device_unregister(), for
 better style.]
Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
parent 2cd0e544
...@@ -444,6 +444,7 @@ void ipmi_remove_platform_device_by_name(char *name) ...@@ -444,6 +444,7 @@ void ipmi_remove_platform_device_by_name(char *name)
struct platform_device *pdev = to_platform_device(dev); struct platform_device *pdev = to_platform_device(dev);
platform_device_unregister(pdev); platform_device_unregister(pdev);
put_device(dev);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment