hwmon: (coretemp) Fix for non-SMP builds
commit0fb2a32e2c8f58b5d43846e4de46364998f9af5d
authorJean Delvare <khali@linux-fr.org>
Sun, 6 Nov 2011 19:25:18 +0000 (6 20:25 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:36:59 +0000 (11 09:36 -0800)
tree06becd33b1beda0278b06e1de1bf4ae7e3f69a5a
parentfa7e2a6289195e502003f59768837107a59678c0
hwmon: (coretemp) Fix for non-SMP builds

commit 2aba6cac2a84f3b80e11a680c34d55e7739b474d upstream.

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>
Acked-by: Durgadoss R <Durgadoss.r@intel.com>
Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/hwmon/coretemp.c