Commit 620100cf authored by Jean Delvare's avatar Jean Delvare Committed by Jean Delvare

hwmon/smsc47m1: Use DRVNAME consistently

Also use pr_info instead of printk.
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent 51f2cca1
...@@ -437,25 +437,23 @@ static int __init smsc47m1_find(unsigned short *addr, ...@@ -437,25 +437,23 @@ static int __init smsc47m1_find(unsigned short *addr,
*/ */
switch (val) { switch (val) {
case 0x51: case 0x51:
printk(KERN_INFO "smsc47m1: Found SMSC LPC47B27x\n"); pr_info(DRVNAME ": Found SMSC LPC47B27x\n");
sio_data->type = smsc47m1; sio_data->type = smsc47m1;
break; break;
case 0x59: case 0x59:
printk(KERN_INFO "smsc47m1: Found SMSC " pr_info(DRVNAME ": Found SMSC LPC47M10x/LPC47M112/LPC47M13x\n");
"LPC47M10x/LPC47M112/LPC47M13x\n");
sio_data->type = smsc47m1; sio_data->type = smsc47m1;
break; break;
case 0x5F: case 0x5F:
printk(KERN_INFO "smsc47m1: Found SMSC LPC47M14x\n"); pr_info(DRVNAME ": Found SMSC LPC47M14x\n");
sio_data->type = smsc47m1; sio_data->type = smsc47m1;
break; break;
case 0x60: case 0x60:
printk(KERN_INFO "smsc47m1: Found SMSC " pr_info(DRVNAME ": Found SMSC LPC47M15x/LPC47M192/LPC47M997\n");
"LPC47M15x/LPC47M192/LPC47M997\n");
sio_data->type = smsc47m1; sio_data->type = smsc47m1;
break; break;
case 0x6B: case 0x6B:
printk(KERN_INFO "smsc47m1: Found SMSC LPC47M292\n"); pr_info(DRVNAME ": Found SMSC LPC47M292\n");
sio_data->type = smsc47m2; sio_data->type = smsc47m2;
break; break;
default: default:
...@@ -468,7 +466,7 @@ static int __init smsc47m1_find(unsigned short *addr, ...@@ -468,7 +466,7 @@ static int __init smsc47m1_find(unsigned short *addr,
| superio_inb(SUPERIO_REG_BASE + 1); | superio_inb(SUPERIO_REG_BASE + 1);
val = superio_inb(SUPERIO_REG_ACT); val = superio_inb(SUPERIO_REG_ACT);
if (*addr == 0 || (val & 0x01) == 0) { if (*addr == 0 || (val & 0x01) == 0) {
printk(KERN_INFO "smsc47m1: Device is disabled, will not use\n"); pr_info(DRVNAME ": Device is disabled, will not use\n");
superio_exit(); superio_exit();
return -ENODEV; return -ENODEV;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment