Revision d0e51022a025ca5350fafb8e413a6fe5d4baf833 authored by Yang Yingliang on 01 July 2022, 07:41:53 UTC, committed by Guenter Roeck on 01 July 2022, 18:53:29 UTC
If platform_device_add() fails, it no need to call platform_device_del(), split
platform_device_unregister() into platform_device_del/put(), so platform_device_put()
can be called separately.

Fixes: 8808a793f052 ("ibmaem: new driver for power/energy/temp meters in IBM System X hardware")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220701074153.4021556-1-yangyingliang@huawei.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent f0aa153
History

back to top