Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -444,6 +444,7 @@ void ipmi_remove_platform_device_by_name(char *name)
		struct platform_device *pdev = to_platform_device(dev);

		platform_device_unregister(pdev);
		put_device(dev);
	}
}