diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/hwmon/smsc47b397.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hwmon/smsc47b397.c b/drivers/hwmon/smsc47b397.c index 3b65b0e61c49..45266b30ce1d 100644 --- a/drivers/hwmon/smsc47b397.c +++ b/drivers/hwmon/smsc47b397.c | |||
@@ -174,6 +174,8 @@ static SENSOR_DEVICE_ATTR(temp4_input, S_IRUGO, show_temp, NULL, 3); | |||
174 | REG: count of 90kHz pulses / revolution */ | 174 | REG: count of 90kHz pulses / revolution */ |
175 | static int fan_from_reg(u16 reg) | 175 | static int fan_from_reg(u16 reg) |
176 | { | 176 | { |
177 | if (reg == 0 || reg == 0xffff) | ||
178 | return 0; | ||
177 | return 90000 * 60 / reg; | 179 | return 90000 * 60 / reg; |
178 | } | 180 | } |
179 | 181 | ||