]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (nct6775) Fix probe unwind paths to properly unregister platform devices
authorAxel Lin <axel.lin@ingics.com>
Sat, 24 May 2014 15:21:23 +0000 (23:21 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 24 May 2014 15:30:29 +0000 (08:30 -0700)
commit80038db74cb816e041473e5b30b9a6b8cc514d4c
treeffd5f8cb949f8b1c347f93589cad4b295cea8f38
parentf9eae4bde554b879105db6dbaf508de612413cce
hwmon: (nct6775) Fix probe unwind paths to properly unregister platform devices

Call platform_device_unregister() rather than platform_device_put() to
unregister successfully registered platform devices.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/nct6775.c