hwmon: (w83627ehf) Force initial bank selection
authorJean Delvare <khali@linux-fr.org>
Mon, 5 Nov 2012 20:54:39 +0000 (21:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Nov 2012 21:16:12 +0000 (13:16 -0800)
commit45820dcb6cfe07b7ebb6ae5a5688f06b83996478
tree860eab121377766bfd5b1947f73e16696f8ee75a
parent47baf0d8ba90a5765f8f51130f9b20dc49ff6da4
hwmon: (w83627ehf) Force initial bank selection

commit 3300fb4f88688029fff8dfb9ec0734f6e4cba3e7 upstream.

Don't assume bank 0 is selected at device probe time. This may not be
the case. Force bank selection at first register access to guarantee
that we read the right registers upon driver loading.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwmon/w83627ehf.c