diff options
author | Jean Delvare <khali@linux-fr.org> | 2006-08-28 14:22:34 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-28 15:31:12 -0700 |
commit | 0dd7699ec4b27b3662d8980ff7a309cc81276298 (patch) | |
tree | 17b7f7d6e6c7947ae03cab6e3681cc91f72f6352 /drivers/hwmon/smsc47m1.c | |
parent | b25a10631a81fca33a94d1f1f6960928d8e9ce63 (diff) | |
download | op-kernel-dev-0dd7699ec4b27b3662d8980ff7a309cc81276298.zip op-kernel-dev-0dd7699ec4b27b3662d8980ff7a309cc81276298.tar.gz |
smsc47m1: dev_warn fix
smsc47m1: dev_warn fix
We can't use dev_warn on an i2c client before it is attached.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/hwmon/smsc47m1.c')
-rw-r--r-- | drivers/hwmon/smsc47m1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hwmon/smsc47m1.c b/drivers/hwmon/smsc47m1.c index 6c81b84..9cd28f2 100644 --- a/drivers/hwmon/smsc47m1.c +++ b/drivers/hwmon/smsc47m1.c @@ -429,7 +429,8 @@ static int smsc47m1_detect(struct i2c_adapter *adapter) pwm2 = (smsc47m1_read_value(new_client, SMSC47M1_REG_PPIN(1)) & 0x05) == 0x04; if (!(fan1 || fan2 || pwm1 || pwm2)) { - dev_warn(&new_client->dev, "Device is not configured, will not use\n"); + dev_warn(&adapter->dev, "Device at 0x%x is not configured, " + "will not use\n", new_client->addr); err = -ENODEV; goto error_free; } |