summaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/toshiba_bluetooth.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-03-30 00:21:52 +0200
committerMatthew Garrett <mjg@redhat.com>2011-05-27 18:35:52 +0200
commit7e33460d8d991843a5821d667b55c75a092cf6e3 (patch)
treed00fed9f0e7f0ed3a9db31c3e233cbca5d533a3b /drivers/platform/x86/toshiba_bluetooth.c
parenttopstar-laptop: Convert remaining printk to pr_info (diff)
downloadlinux-7e33460d8d991843a5821d667b55c75a092cf6e3.tar.xz
linux-7e33460d8d991843a5821d667b55c75a092cf6e3.zip
toshiba: Convert printks to pr_<level>
Add pr_fmt. Remove local MY_<foo> #defines. Convert printks to pr_<level>. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/platform/x86/toshiba_bluetooth.c')
-rw-r--r--drivers/platform/x86/toshiba_bluetooth.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/platform/x86/toshiba_bluetooth.c b/drivers/platform/x86/toshiba_bluetooth.c
index 944068611919..5fb7186694df 100644
--- a/drivers/platform/x86/toshiba_bluetooth.c
+++ b/drivers/platform/x86/toshiba_bluetooth.c
@@ -17,6 +17,8 @@
* delivered.
*/
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
@@ -70,14 +72,13 @@ static int toshiba_bluetooth_enable(acpi_handle handle)
if (!(result & 0x01))
return 0;
- printk(KERN_INFO "toshiba_bluetooth: Re-enabling Toshiba Bluetooth\n");
+ pr_info("Re-enabling Toshiba Bluetooth\n");
res1 = acpi_evaluate_object(handle, "AUSB", NULL, NULL);
res2 = acpi_evaluate_object(handle, "BTPO", NULL, NULL);
if (!ACPI_FAILURE(res1) || !ACPI_FAILURE(res2))
return 0;
- printk(KERN_WARNING "toshiba_bluetooth: Failed to re-enable "
- "Toshiba Bluetooth\n");
+ pr_warn("Failed to re-enable Toshiba Bluetooth\n");
return -ENODEV;
}
@@ -107,8 +108,8 @@ static int toshiba_bt_rfkill_add(struct acpi_device *device)
&bt_present);
if (!ACPI_FAILURE(status) && bt_present) {
- printk(KERN_INFO "Detected Toshiba ACPI Bluetooth device - "
- "installing RFKill handler\n");
+ pr_info("Detected Toshiba ACPI Bluetooth device - "
+ "installing RFKill handler\n");
result = toshiba_bluetooth_enable(device->handle);
}