Revert "drivers: thermal: parent virtual hwmon with thermal zone"
authorZhang Rui <rui.zhang@intel.com>
Fri, 7 Feb 2014 10:44:09 +0000 (02:44 -0800)
committerDiwakar Tundlam <dtundlam@nvidia.com>
Fri, 14 Feb 2014 00:07:15 +0000 (16:07 -0800)
commitff826a0dc6e6f360cacddfd0f3c73ab37ba4f28d
treec2d534ddd938fdf8451e14e185b432f53c3346c1
parentf76fb7752dda719bc224f48f696e6cd749c54dc2
Revert "drivers: thermal: parent virtual hwmon with thermal zone"

Commit b82715fdd4a5407f56853b24d387d484dd9c3b5b introduces
a 'device' subdirectory under /sys/class/hwmon/hwmonX/ directory,
for the thermal_zone hwmon devices. And this results in different
handling by libsensors.

The problem is reported and discussed in this thread
http://marc.info/?l=linux-pm&m=138229306109596&w=2

This patch reverts commit b82715fdd4a5407f56853b24d387d484dd9c3b5b.

Change-Id: Id7c99beeb92c1b779a280cba1874fd19d0931751
Reported-by: Arnaud Ebalard <arno@natisbad.org>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Paul Walmsley <pwalmsley@nvidia.com> # for the NVIDIA downstream kernel
Reviewed-on: http://git-master/r/356890
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>
drivers/thermal/thermal_hwmon.c