hwmon: (core) Avoid cyclic dependency between hwmon and thermal_sys
authorGuenter Roeck <linux@roeck-us.net>
Fri, 12 Aug 2016 13:28:15 +0000 (06:28 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 9 Sep 2016 04:34:16 +0000 (21:34 -0700)
commit86430c1a66fe490fc97b0970575c223e27dee49d
tree3a9cfc330173a7114a5a9b5896a4d3e33f115164
parentaa18cc911ae2f172429d59169e95726b8e63525c
hwmon: (core) Avoid cyclic dependency between hwmon and thermal_sys

If both hwmon and thermal_sys are built as modules, and
CONFIG_THERMAL_HWMON is enabled, the following cyclic module dependency
is reported.

depmod: ERROR: Found 2 modules in dependency cycles!
depmod: ERROR: Cycle detected: hwmon -> thermal_sys -> hwmon

Fixes: e4bce763adb2 ("hwmon: (core) New hwmon registration API")
Reported-by: Vignesh R <vigneshr@ti.com>
Cc: Keerthy J <j-keerthy@ti.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/hwmon.c