|
7 | 7 | * Copyright (c) 2005 Rich Townsend <[email protected]>
|
8 | 8 | */
|
9 | 9 |
|
| 10 | +#define pr_fmt(fmt) "ACPI: " fmt |
| 11 | + |
10 | 12 | #include <linux/init.h>
|
11 | 13 | #include <linux/slab.h>
|
12 | 14 | #include <linux/module.h>
|
|
23 | 25 |
|
24 | 26 | #include "sbshc.h"
|
25 | 27 |
|
26 |
| -#define PREFIX "ACPI: " |
27 |
| - |
28 | 28 | #define ACPI_SBS_CLASS "sbs"
|
29 | 29 | #define ACPI_AC_CLASS "ac_adapter"
|
30 | 30 | #define ACPI_SBS_DEVICE_NAME "Smart Battery System"
|
@@ -544,7 +544,7 @@ static int acpi_battery_add(struct acpi_sbs *sbs, int id)
|
544 | 544 | goto end;
|
545 | 545 | battery->have_sysfs_alarm = 1;
|
546 | 546 | end:
|
547 |
| - printk(KERN_INFO PREFIX "%s [%s]: Battery Slot [%s] (battery %s)\n", |
| 547 | + pr_info("%s [%s]: Battery Slot [%s] (battery %s)\n", |
548 | 548 | ACPI_SBS_DEVICE_NAME, acpi_device_bid(sbs->device),
|
549 | 549 | battery->name, battery->present ? "present" : "absent");
|
550 | 550 | return result;
|
@@ -577,10 +577,10 @@ static int acpi_charger_add(struct acpi_sbs *sbs)
|
577 | 577 | result = PTR_ERR(sbs->charger);
|
578 | 578 | sbs->charger = NULL;
|
579 | 579 | }
|
580 |
| - printk(KERN_INFO PREFIX "%s [%s]: AC Adapter [%s] (%s)\n", |
| 580 | + pr_info("%s [%s]: AC Adapter [%s] (%s)\n", |
581 | 581 | ACPI_SBS_DEVICE_NAME, acpi_device_bid(sbs->device),
|
582 | 582 | ACPI_AC_DIR_NAME, sbs->charger_present ? "on-line" : "off-line");
|
583 |
| - end: |
| 583 | +end: |
584 | 584 | return result;
|
585 | 585 | }
|
586 | 586 |
|
@@ -658,7 +658,7 @@ static int acpi_sbs_add(struct acpi_device *device)
|
658 | 658 | acpi_battery_add(sbs, 0);
|
659 | 659 |
|
660 | 660 | acpi_smbus_register_callback(sbs->hc, acpi_sbs_callback, sbs);
|
661 |
| - end: |
| 661 | +end: |
662 | 662 | if (result)
|
663 | 663 | acpi_sbs_remove(device);
|
664 | 664 | return result;
|
|
0 commit comments