diff options
Diffstat (limited to 'drivers/hwmon/pc87427.c')
-rw-r--r-- | drivers/hwmon/pc87427.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/hwmon/pc87427.c b/drivers/hwmon/pc87427.c index 6086ad039d7d..ea606860d2b2 100644 --- a/drivers/hwmon/pc87427.c +++ b/drivers/hwmon/pc87427.c | |||
@@ -627,8 +627,9 @@ static ssize_t set_pwm(struct device *dev, struct device_attribute | |||
627 | pc87427_readall_pwm(data, nr); | 627 | pc87427_readall_pwm(data, nr); |
628 | mode = data->pwm_enable[nr] & PWM_ENABLE_MODE_MASK; | 628 | mode = data->pwm_enable[nr] & PWM_ENABLE_MODE_MASK; |
629 | if (mode != PWM_MODE_MANUAL && mode != PWM_MODE_OFF) { | 629 | if (mode != PWM_MODE_MANUAL && mode != PWM_MODE_OFF) { |
630 | dev_notice(dev, "Can't set PWM%d duty cycle while not in " | 630 | dev_notice(dev, |
631 | "manual mode\n", nr + 1); | 631 | "Can't set PWM%d duty cycle while not in manual mode\n", |
632 | nr + 1); | ||
632 | mutex_unlock(&data->lock); | 633 | mutex_unlock(&data->lock); |
633 | return -EPERM; | 634 | return -EPERM; |
634 | } | 635 | } |
@@ -1245,16 +1246,16 @@ static int __init pc87427_find(int sioaddr, struct pc87427_sio_data *sio_data) | |||
1245 | 1246 | ||
1246 | val = superio_inb(sioaddr, SIOREG_MAP); | 1247 | val = superio_inb(sioaddr, SIOREG_MAP); |
1247 | if (val & 0x01) { | 1248 | if (val & 0x01) { |
1248 | pr_warn("Logical device 0x%02x is memory-mapped, " | 1249 | pr_warn("Logical device 0x%02x is memory-mapped, can't use\n", |
1249 | "can't use\n", logdev[i]); | 1250 | logdev[i]); |
1250 | continue; | 1251 | continue; |
1251 | } | 1252 | } |
1252 | 1253 | ||
1253 | val = (superio_inb(sioaddr, SIOREG_IOBASE) << 8) | 1254 | val = (superio_inb(sioaddr, SIOREG_IOBASE) << 8) |
1254 | | superio_inb(sioaddr, SIOREG_IOBASE + 1); | 1255 | | superio_inb(sioaddr, SIOREG_IOBASE + 1); |
1255 | if (!val) { | 1256 | if (!val) { |
1256 | pr_info("I/O base address not set for logical device " | 1257 | pr_info("I/O base address not set for logical device 0x%02x\n", |
1257 | "0x%02x\n", logdev[i]); | 1258 | logdev[i]); |
1258 | continue; | 1259 | continue; |
1259 | } | 1260 | } |
1260 | sio_data->address[i] = val; | 1261 | sio_data->address[i] = val; |