]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (coretemp) Fix for non-SMP builds
authorJean Delvare <khali@linux-fr.org>
Sun, 6 Nov 2011 19:25:18 +0000 (20:25 +0100)
committerJean Delvare <khali@endymion.delvare>
Sun, 6 Nov 2011 19:25:18 +0000 (20:25 +0100)
commitf1763e7c62e579553be6e7d4948a9b9e3f260486
tree9dda2cd4be097035d67864516c05696a41503c2f
parenta4cd3ee0f4a651da0d247c62996bfff1abeb065d
hwmon: (coretemp) Fix for non-SMP builds

The definition of TO_ATTR_NO in the non-SMP case is wrong. As the SMP
definition resolves to the correct value, just use this for both
cases.

Without this fix the temperature attributes are named temp0_* instead
of temp2_*, so libsensors won't pick them. Broken since kernel 3.0.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Tested-by: Phil Sutter <phil@nwl.cc>
Cc: stable@kernel.org
Acked-by: Durgadoss R <Durgadoss.r@intel.com>
Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/coretemp.c