projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a9a126
)
ACPI: sbshc: remove raw pointer from printk() message
author
Greg Kroah-Hartman
<
[email protected]
>
Fri, 19 Jan 2018 09:06:03 +0000
(10:06 +0100)
committer
Rafael J. Wysocki
<
[email protected]
>
Thu, 8 Feb 2018 08:50:08 +0000
(09:50 +0100)
There's no need to be printing a raw kernel pointer to the kernel log at
every boot. So just remove it, and change the whole message to use the
correct dev_info() call at the same time.
Reported-by: Wang Qize <
[email protected]
>
Cc: All applicable <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
Signed-off-by: Rafael J. Wysocki <
[email protected]
>
drivers/acpi/sbshc.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/sbshc.c
b/drivers/acpi/sbshc.c
index 2fa8304171e09b70e501dcab7892a9b443c84695..7a3431018e0ab4ce96dc055abf31444e498b04bb 100644
(file)
--- a/
drivers/acpi/sbshc.c
+++ b/
drivers/acpi/sbshc.c
@@
-275,8
+275,8
@@
static int acpi_smbus_hc_add(struct acpi_device *device)
device->driver_data = hc;
acpi_ec_add_query_handler(hc->ec, hc->query_bit, NULL, smbus_alarm, hc);
-
printk(KERN_INFO PREFIX "SBS HC: EC = 0x%p,
offset = 0x%0x, query_bit = 0x%0x\n",
-
hc->ec,
hc->offset, hc->query_bit);
+
dev_info(&device->dev, "SBS HC:
offset = 0x%0x, query_bit = 0x%0x\n",
+ hc->offset, hc->query_bit);
return 0;
}