diff options
Diffstat (limited to 'drivers/rtc/hctosys.c')
-rw-r--r-- | drivers/rtc/hctosys.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/rtc/hctosys.c b/drivers/rtc/hctosys.c index 91fb5f3c1051..e1cfa06810ef 100644 --- a/drivers/rtc/hctosys.c +++ b/drivers/rtc/hctosys.c | |||
@@ -9,6 +9,8 @@ | |||
9 | * published by the Free Software Foundation. | 9 | * published by the Free Software Foundation. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
13 | |||
12 | #include <linux/rtc.h> | 14 | #include <linux/rtc.h> |
13 | 15 | ||
14 | /* IMPORTANT: the RTC only stores whole seconds. It is arbitrary | 16 | /* IMPORTANT: the RTC only stores whole seconds. It is arbitrary |
@@ -32,8 +34,8 @@ static int __init rtc_hctosys(void) | |||
32 | struct rtc_device *rtc = rtc_class_open(CONFIG_RTC_HCTOSYS_DEVICE); | 34 | struct rtc_device *rtc = rtc_class_open(CONFIG_RTC_HCTOSYS_DEVICE); |
33 | 35 | ||
34 | if (rtc == NULL) { | 36 | if (rtc == NULL) { |
35 | pr_info("%s: unable to open rtc device (%s)\n", | 37 | pr_info("unable to open rtc device (%s)\n", |
36 | __func__, CONFIG_RTC_HCTOSYS_DEVICE); | 38 | CONFIG_RTC_HCTOSYS_DEVICE); |
37 | goto err_open; | 39 | goto err_open; |
38 | } | 40 | } |
39 | 41 | ||