aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd/lpddr/lpddr_cmds.c
diff options
context:
space:
mode:
authorJean Delvare <[email protected]>2011-01-12 21:55:09 +0100
committerJean Delvare <[email protected]>2011-01-12 21:55:09 +0100
commitf790674d3f87df6390828ac21a7d1530f71b59c8 (patch)
tree0ecb41ffc87ec234c7dd4e62e9f835bd8265f20f /drivers/mtd/lpddr/lpddr_cmds.c
parent014bcd28a04ec085940ea3125f5ea91b16a1945d (diff)
hwmon: (via686a) Initialize fan_div values
Functions set_fan_min() and set_fan_div() assume that the fan_div values have already been read from the register. The driver currently doesn't initialize them at load time, they are only set when function via686a_update_device() is called. This means that set_fan_min() and set_fan_div() misbehave if, for example, "sensors -s" is called before any monitoring application (e.g. "sensors") is has been run. Fix the problem by always initializing the fan_div values at device bind time. Signed-off-by: Jean Delvare <[email protected]> Cc: [email protected] Acked-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions