hwmon: convert lm75 to use devm_thermal_zone_of_sensor_register
authorEduardo Valentin <edubezval@gmail.com>
Wed, 9 Mar 2016 20:39:58 +0000 (12:39 -0800)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 17 May 2016 14:28:25 +0000 (07:28 -0700)
commit2a48802f376bbb56a68c530255dfc3dc744b3e97
treec5824621c0d1b8c881fd8b64d6608834d4b6b2b0
parentef41be8168b6ceaa6220d5ca5430b960194ea94f
hwmon: convert lm75 to use devm_thermal_zone_of_sensor_register

This changes the driver to use the devm_ version
of thermal_zone_of_sensor_register and cleans
up the  local points and unregister calls.

Cc: Jean Delvare <jdelvare@suse.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: lm-sensors@lm-sensors.org
Cc: linux-kernel@vger.kernel.org
Acked-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/hwmon/lm75.c