diff options
Diffstat (limited to 'drivers/rtc/rtc-rs5c313.c')
-rw-r--r-- | drivers/rtc/rtc-rs5c313.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/rtc/rtc-rs5c313.c b/drivers/rtc/rtc-rs5c313.c index e3ff179b99ca..d98ea5b759c8 100644 --- a/drivers/rtc/rtc-rs5c313.c +++ b/drivers/rtc/rtc-rs5c313.c | |||
@@ -39,6 +39,8 @@ | |||
39 | * 1.13 Nobuhiro Iwamatsu: Updata driver. | 39 | * 1.13 Nobuhiro Iwamatsu: Updata driver. |
40 | */ | 40 | */ |
41 | 41 | ||
42 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
43 | |||
42 | #include <linux/module.h> | 44 | #include <linux/module.h> |
43 | #include <linux/err.h> | 45 | #include <linux/err.h> |
44 | #include <linux/rtc.h> | 46 | #include <linux/rtc.h> |
@@ -352,8 +354,7 @@ static void rs5c313_check_xstp_bit(void) | |||
352 | tm.tm_year = 2000 - 1900; | 354 | tm.tm_year = 2000 - 1900; |
353 | 355 | ||
354 | rs5c313_rtc_set_time(NULL, &tm); | 356 | rs5c313_rtc_set_time(NULL, &tm); |
355 | printk(KERN_ERR "RICHO RS5C313: invalid value, resetting to " | 357 | pr_err("invalid value, resetting to 1 Jan 2000\n"); |
356 | "1 Jan 2000\n"); | ||
357 | } | 358 | } |
358 | RS5C313_CEDISABLE; | 359 | RS5C313_CEDISABLE; |
359 | ndelay(700); /* CE:L */ | 360 | ndelay(700); /* CE:L */ |
@@ -377,7 +378,7 @@ static int rs5c313_rtc_probe(struct platform_device *pdev) | |||
377 | return 0; | 378 | return 0; |
378 | } | 379 | } |
379 | 380 | ||
380 | static int __devexit rs5c313_rtc_remove(struct platform_device *pdev) | 381 | static int rs5c313_rtc_remove(struct platform_device *pdev) |
381 | { | 382 | { |
382 | struct rtc_device *rtc = platform_get_drvdata( pdev ); | 383 | struct rtc_device *rtc = platform_get_drvdata( pdev ); |
383 | 384 | ||
@@ -392,7 +393,7 @@ static struct platform_driver rs5c313_rtc_platform_driver = { | |||
392 | .owner = THIS_MODULE, | 393 | .owner = THIS_MODULE, |
393 | }, | 394 | }, |
394 | .probe = rs5c313_rtc_probe, | 395 | .probe = rs5c313_rtc_probe, |
395 | .remove = __devexit_p( rs5c313_rtc_remove ), | 396 | .remove = rs5c313_rtc_remove, |
396 | }; | 397 | }; |
397 | 398 | ||
398 | static int __init rs5c313_rtc_init(void) | 399 | static int __init rs5c313_rtc_init(void) |