diff options
author | 2022-07-01 15:41:53 +0800 | |
---|---|---|
committer | 2022-07-01 11:53:29 -0700 | |
commit | d0e51022a025ca5350fafb8e413a6fe5d4baf833 (patch) | |
tree | 082924672ec70b493e872d3b2783d17883b2c0b8 /scripts/generate_rust_analyzer.py | |
parent | hwmon: (pmbus/ucd9200) fix typos in comments (diff) | |
download | wireguard-linux-d0e51022a025ca5350fafb8e413a6fe5d4baf833.tar.xz wireguard-linux-d0e51022a025ca5350fafb8e413a6fe5d4baf833.zip |
hwmon: (ibmaem) don't call platform_device_del() if platform_device_add() fails
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>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions