summaryrefslogtreecommitdiff
path: root/tools/testing
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2022-07-01 10:41:53 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-07-07 18:52:20 +0300
commit14894cf6925c342047d3c63ca9c815a08b4685dc (patch)
treeba45cfadcf9db9666c7083d207d0e85ebcf6d022 /tools/testing
parentf72d410dbf8dbfb6b87b3d45a1cebde7a5de9b7b (diff)
downloadlinux-14894cf6925c342047d3c63ca9c815a08b4685dc.tar.xz
hwmon: (ibmaem) don't call platform_device_del() if platform_device_add() fails
[ Upstream commit d0e51022a025ca5350fafb8e413a6fe5d4baf833 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions