Guenter Roeck 319fe15988 hwmon: Register thermal zone only if 'dev' parameter was provided
Rgistering a thermal zone uses devm_kzalloc(), which requires
a pointer to the parent device.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2017-01-31 03:56:08 -08:00
..
2014-08-04 07:01:35 -07:00
2016-06-27 18:58:04 -07:00
2013-03-18 21:19:49 +01:00
2014-08-04 07:01:35 -07:00
2016-03-05 06:25:34 -08:00
2014-08-04 07:01:35 -07:00
2014-08-04 07:01:35 -07:00
2014-01-29 20:40:08 +01:00
2016-12-02 13:28:02 -08:00
2015-06-21 22:54:53 -07:00
2016-12-02 13:28:05 -08:00