diff options
Diffstat (limited to 'drivers/rtc/rtc-max77686.c')
-rw-r--r-- | drivers/rtc/rtc-max77686.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/rtc/rtc-max77686.c b/drivers/rtc/rtc-max77686.c index 771812d62e6b..9915cb96014b 100644 --- a/drivers/rtc/rtc-max77686.c +++ b/drivers/rtc/rtc-max77686.c | |||
@@ -119,7 +119,7 @@ static int max77686_rtc_tm_to_data(struct rtc_time *tm, u8 *data) | |||
119 | data[RTC_WEEKDAY] = 1 << tm->tm_wday; | 119 | data[RTC_WEEKDAY] = 1 << tm->tm_wday; |
120 | data[RTC_DATE] = tm->tm_mday; | 120 | data[RTC_DATE] = tm->tm_mday; |
121 | data[RTC_MONTH] = tm->tm_mon + 1; | 121 | data[RTC_MONTH] = tm->tm_mon + 1; |
122 | data[RTC_YEAR] = tm->tm_year > 100 ? (tm->tm_year - 100) : 0 ; | 122 | data[RTC_YEAR] = tm->tm_year > 100 ? (tm->tm_year - 100) : 0; |
123 | 123 | ||
124 | if (tm->tm_year < 100) { | 124 | if (tm->tm_year < 100) { |
125 | pr_warn("%s: MAX77686 RTC cannot handle the year %d." | 125 | pr_warn("%s: MAX77686 RTC cannot handle the year %d." |
@@ -567,11 +567,6 @@ err_rtc: | |||
567 | return ret; | 567 | return ret; |
568 | } | 568 | } |
569 | 569 | ||
570 | static int max77686_rtc_remove(struct platform_device *pdev) | ||
571 | { | ||
572 | return 0; | ||
573 | } | ||
574 | |||
575 | static void max77686_rtc_shutdown(struct platform_device *pdev) | 570 | static void max77686_rtc_shutdown(struct platform_device *pdev) |
576 | { | 571 | { |
577 | #ifdef MAX77686_RTC_WTSR_SMPL | 572 | #ifdef MAX77686_RTC_WTSR_SMPL |
@@ -610,7 +605,6 @@ static struct platform_driver max77686_rtc_driver = { | |||
610 | .owner = THIS_MODULE, | 605 | .owner = THIS_MODULE, |
611 | }, | 606 | }, |
612 | .probe = max77686_rtc_probe, | 607 | .probe = max77686_rtc_probe, |
613 | .remove = max77686_rtc_remove, | ||
614 | .shutdown = max77686_rtc_shutdown, | 608 | .shutdown = max77686_rtc_shutdown, |
615 | .id_table = rtc_id, | 609 | .id_table = rtc_id, |
616 | }; | 610 | }; |