]> git.baikalelectronics.ru Git - kernel.git/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)
commit84584e99bbb5df97c990fdbc60245ea01065f40b
tree52b23555f5e240d81180cf4aab82b90bca804d1b
parent580802f8f56b01a02e3e198e50730a04f8892f51
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