diff options
author | Guenter Roeck <linux@roeck-us.net> | 2016-06-19 20:09:54 -0700 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2016-06-27 18:58:31 -0700 |
commit | b17ea1ca1da115050959d24353e58ccae8aacb58 (patch) | |
tree | 821d25a5ed827c25af9f329637ffb7f899521f0e /drivers/watchdog | |
parent | a31887dc9be1a65cde2562ed10e7fbf5c82581a2 (diff) | |
download | linux-b17ea1ca1da115050959d24353e58ccae8aacb58.tar.gz linux-b17ea1ca1da115050959d24353e58ccae8aacb58.tar.bz2 linux-b17ea1ca1da115050959d24353e58ccae8aacb58.zip |
hwmon: (tmp102) Use devm_add_action to register cleanup function
By registering a cleanup function with devm_add_action(), we can
simplify the error path in the probe function and drop the remove
function entirely.
Acked-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/watchdog')
0 files changed, 0 insertions, 0 deletions