diff options
author | Jean Delvare <khali@linux-fr.org> | 2007-08-16 08:33:37 -0400 |
---|---|---|
committer | Mark M. Hoffman <mhoffman@lightlink.com> | 2007-10-09 22:56:29 -0400 |
commit | 8477d026893d42b00474e9a13ab01ccce7fc2673 (patch) | |
tree | 6ed8037caf84ec0cba73c36e3cce99dcb9f7b803 /drivers/hwmon/smsc47m1.c | |
parent | 67f921d164a046c957f06fb456cabc23c48667ab (diff) |
hwmon: (smsc47m1) No confusing debugging messages
It's confusing to display debugging messages for fan3 and pwm3 for
chips which don't have them.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
Diffstat (limited to 'drivers/hwmon/smsc47m1.c')
-rw-r--r-- | drivers/hwmon/smsc47m1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/smsc47m1.c b/drivers/hwmon/smsc47m1.c index d3181967f167..71792778d6f2 100644 --- a/drivers/hwmon/smsc47m1.c +++ b/drivers/hwmon/smsc47m1.c | |||
@@ -553,7 +553,7 @@ static int __devinit smsc47m1_probe(struct platform_device *pdev) | |||
553 | || (err = device_create_file(dev, | 553 | || (err = device_create_file(dev, |
554 | &sensor_dev_attr_fan3_div.dev_attr))) | 554 | &sensor_dev_attr_fan3_div.dev_attr))) |
555 | goto error_remove_files; | 555 | goto error_remove_files; |
556 | } else | 556 | } else if (data->type == smsc47m2) |
557 | dev_dbg(dev, "Fan 3 not enabled by hardware, skipping\n"); | 557 | dev_dbg(dev, "Fan 3 not enabled by hardware, skipping\n"); |
558 | 558 | ||
559 | if (pwm1) { | 559 | if (pwm1) { |
@@ -580,7 +580,7 @@ static int __devinit smsc47m1_probe(struct platform_device *pdev) | |||
580 | || (err = device_create_file(dev, | 580 | || (err = device_create_file(dev, |
581 | &sensor_dev_attr_pwm3_enable.dev_attr))) | 581 | &sensor_dev_attr_pwm3_enable.dev_attr))) |
582 | goto error_remove_files; | 582 | goto error_remove_files; |
583 | } else | 583 | } else if (data->type == smsc47m2) |
584 | dev_dbg(dev, "PWM 3 not enabled by hardware, skipping\n"); | 584 | dev_dbg(dev, "PWM 3 not enabled by hardware, skipping\n"); |
585 | 585 | ||
586 | if ((err = device_create_file(dev, &dev_attr_alarms))) | 586 | if ((err = device_create_file(dev, &dev_attr_alarms))) |