]> err.no Git - linux-2.6/commit
hwmon: Only call vid_which_vrm() when needed
authorJean Delvare <khali@linux-fr.org>
Tue, 8 May 2007 15:21:59 +0000 (17:21 +0200)
committerJean Delvare <khali@hyperion.delvare>
Tue, 8 May 2007 15:21:59 +0000 (17:21 +0200)
commit8a665a0552c414af88788cc0e2cf0e4626182c20
tree52b23555f5e240d81180cf4aab82b90bca804d1b
parent94e183fd0425a917d9c1453041ef88f3610c0f01
hwmon: Only call vid_which_vrm() when needed

Some hardware monitoring drivers create the VID/VRM interface files
conditionally depending on the chip model or configuration. We should
only call vid_which_vrm() when we are actually going to create the
files. Not only it is more logical and efficient that way, but it also
prevents printing unnecessary warnings such as the one reported here:
http://lists.lm-sensors.org/pipermail/lm-sensors/2007-February/018954.html

Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/lm87.c
drivers/hwmon/w83627hf.c