diff options
Diffstat (limited to 'drivers/rtc/rtc-twl.c')
-rw-r--r-- | drivers/rtc/rtc-twl.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/rtc/rtc-twl.c b/drivers/rtc/rtc-twl.c index 5baea3f54926..2dc787dc06c1 100644 --- a/drivers/rtc/rtc-twl.c +++ b/drivers/rtc/rtc-twl.c | |||
@@ -18,6 +18,8 @@ | |||
18 | * 2 of the License, or (at your option) any later version. | 18 | * 2 of the License, or (at your option) any later version. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
22 | |||
21 | #include <linux/kernel.h> | 23 | #include <linux/kernel.h> |
22 | #include <linux/errno.h> | 24 | #include <linux/errno.h> |
23 | #include <linux/init.h> | 25 | #include <linux/init.h> |
@@ -145,8 +147,7 @@ static int twl_rtc_read_u8(u8 *data, u8 reg) | |||
145 | 147 | ||
146 | ret = twl_i2c_read_u8(TWL_MODULE_RTC, data, (rtc_reg_map[reg])); | 148 | ret = twl_i2c_read_u8(TWL_MODULE_RTC, data, (rtc_reg_map[reg])); |
147 | if (ret < 0) | 149 | if (ret < 0) |
148 | pr_err("twl_rtc: Could not read TWL" | 150 | pr_err("Could not read TWL register %X - error %d\n", reg, ret); |
149 | "register %X - error %d\n", reg, ret); | ||
150 | return ret; | 151 | return ret; |
151 | } | 152 | } |
152 | 153 | ||
@@ -159,8 +160,8 @@ static int twl_rtc_write_u8(u8 data, u8 reg) | |||
159 | 160 | ||
160 | ret = twl_i2c_write_u8(TWL_MODULE_RTC, data, (rtc_reg_map[reg])); | 161 | ret = twl_i2c_write_u8(TWL_MODULE_RTC, data, (rtc_reg_map[reg])); |
161 | if (ret < 0) | 162 | if (ret < 0) |
162 | pr_err("twl_rtc: Could not write TWL" | 163 | pr_err("Could not write TWL register %X - error %d\n", |
163 | "register %X - error %d\n", reg, ret); | 164 | reg, ret); |
164 | return ret; | 165 | return ret; |
165 | } | 166 | } |
166 | 167 | ||