diff options
Diffstat (limited to 'drivers/hwmon/w83781d.c')
-rw-r--r-- | drivers/hwmon/w83781d.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hwmon/w83781d.c b/drivers/hwmon/w83781d.c index dbfb30c588d8..0bdab959b736 100644 --- a/drivers/hwmon/w83781d.c +++ b/drivers/hwmon/w83781d.c | |||
@@ -1462,7 +1462,8 @@ static struct w83781d_data *w83781d_update_device(struct device *dev) | |||
1462 | data->pwm[i] = | 1462 | data->pwm[i] = |
1463 | w83781d_read_value(data, | 1463 | w83781d_read_value(data, |
1464 | W83781D_REG_PWM[i]); | 1464 | W83781D_REG_PWM[i]); |
1465 | if ((data->type != w83782d || !client->driver) | 1465 | /* Only W83782D on SMBus has PWM3 and PWM4 */ |
1466 | if ((data->type != w83782d || !client) | ||
1466 | && i == 1) | 1467 | && i == 1) |
1467 | break; | 1468 | break; |
1468 | } | 1469 | } |