diff options
author | Jean Delvare <khali@linux-fr.org> | 2007-05-08 11:22:00 -0400 |
---|---|---|
committer | Jean Delvare <khali@hyperion.delvare> | 2007-05-08 11:22:00 -0400 |
commit | 620100cf97a5dd144035e51aeea330d691176489 (patch) | |
tree | 4da8e704b54329e80f09931c93b3f1beb1d4cd6a /drivers/hwmon | |
parent | 51f2cca1f72db5e272ed79b678b62fb9472e916e (diff) |
hwmon/smsc47m1: Use DRVNAME consistently
Also use pr_info instead of printk.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/smsc47m1.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/hwmon/smsc47m1.c b/drivers/hwmon/smsc47m1.c index 223708897e8e..7c16c1c80ef1 100644 --- a/drivers/hwmon/smsc47m1.c +++ b/drivers/hwmon/smsc47m1.c | |||
@@ -437,25 +437,23 @@ static int __init smsc47m1_find(unsigned short *addr, | |||
437 | */ | 437 | */ |
438 | switch (val) { | 438 | switch (val) { |
439 | case 0x51: | 439 | case 0x51: |
440 | printk(KERN_INFO "smsc47m1: Found SMSC LPC47B27x\n"); | 440 | pr_info(DRVNAME ": Found SMSC LPC47B27x\n"); |
441 | sio_data->type = smsc47m1; | 441 | sio_data->type = smsc47m1; |
442 | break; | 442 | break; |
443 | case 0x59: | 443 | case 0x59: |
444 | printk(KERN_INFO "smsc47m1: Found SMSC " | 444 | pr_info(DRVNAME ": Found SMSC LPC47M10x/LPC47M112/LPC47M13x\n"); |
445 | "LPC47M10x/LPC47M112/LPC47M13x\n"); | ||
446 | sio_data->type = smsc47m1; | 445 | sio_data->type = smsc47m1; |
447 | break; | 446 | break; |
448 | case 0x5F: | 447 | case 0x5F: |
449 | printk(KERN_INFO "smsc47m1: Found SMSC LPC47M14x\n"); | 448 | pr_info(DRVNAME ": Found SMSC LPC47M14x\n"); |
450 | sio_data->type = smsc47m1; | 449 | sio_data->type = smsc47m1; |
451 | break; | 450 | break; |
452 | case 0x60: | 451 | case 0x60: |
453 | printk(KERN_INFO "smsc47m1: Found SMSC " | 452 | pr_info(DRVNAME ": Found SMSC LPC47M15x/LPC47M192/LPC47M997\n"); |
454 | "LPC47M15x/LPC47M192/LPC47M997\n"); | ||
455 | sio_data->type = smsc47m1; | 453 | sio_data->type = smsc47m1; |
456 | break; | 454 | break; |
457 | case 0x6B: | 455 | case 0x6B: |
458 | printk(KERN_INFO "smsc47m1: Found SMSC LPC47M292\n"); | 456 | pr_info(DRVNAME ": Found SMSC LPC47M292\n"); |
459 | sio_data->type = smsc47m2; | 457 | sio_data->type = smsc47m2; |
460 | break; | 458 | break; |
461 | default: | 459 | default: |
@@ -468,7 +466,7 @@ static int __init smsc47m1_find(unsigned short *addr, | |||
468 | | superio_inb(SUPERIO_REG_BASE + 1); | 466 | | superio_inb(SUPERIO_REG_BASE + 1); |
469 | val = superio_inb(SUPERIO_REG_ACT); | 467 | val = superio_inb(SUPERIO_REG_ACT); |
470 | if (*addr == 0 || (val & 0x01) == 0) { | 468 | if (*addr == 0 || (val & 0x01) == 0) { |
471 | printk(KERN_INFO "smsc47m1: Device is disabled, will not use\n"); | 469 | pr_info(DRVNAME ": Device is disabled, will not use\n"); |
472 | superio_exit(); | 470 | superio_exit(); |
473 | return -ENODEV; | 471 | return -ENODEV; |
474 | } | 472 | } |