aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2015-05-02 01:31:49 -0400
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2015-06-19 14:03:20 -0400
commita42e6eae457837d6a5925f4926f5ba05ccf44f89 (patch)
tree10a861f20dbda01e6cf96167f42513c8f5af0cf4 /drivers/rtc
parent73744a64aab872703b851b9678a7f488b507eb81 (diff)
rtc: s3c: Integrate Exynos3250 into S3C6410
There are now no differences between RTC on Exynos3250 and S3C6410. Merge everything into one so duplicated code could be removed. Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com> Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Reviewed-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk> Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-s3c.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c
index 76cbad7a99d3..a0f832362199 100644
--- a/drivers/rtc/rtc-s3c.c
+++ b/drivers/rtc/rtc-s3c.c
@@ -772,18 +772,6 @@ static struct s3c_rtc_data const s3c6410_rtc_data = {
772 .disable = s3c6410_rtc_disable, 772 .disable = s3c6410_rtc_disable,
773}; 773};
774 774
775static struct s3c_rtc_data const exynos3250_rtc_data = {
776 .max_user_freq = 32768,
777 .needs_src_clk = true,
778 .irq_handler = s3c6410_rtc_irq,
779 .set_freq = s3c6410_rtc_setfreq,
780 .enable_tick = s3c6410_rtc_enable_tick,
781 .save_tick_cnt = s3c6410_rtc_save_tick_cnt,
782 .restore_tick_cnt = s3c6410_rtc_restore_tick_cnt,
783 .enable = s3c24xx_rtc_enable,
784 .disable = s3c6410_rtc_disable,
785};
786
787static const struct of_device_id s3c_rtc_dt_match[] = { 775static const struct of_device_id s3c_rtc_dt_match[] = {
788 { 776 {
789 .compatible = "samsung,s3c2410-rtc", 777 .compatible = "samsung,s3c2410-rtc",
@@ -799,7 +787,7 @@ static const struct of_device_id s3c_rtc_dt_match[] = {
799 .data = (void *)&s3c6410_rtc_data, 787 .data = (void *)&s3c6410_rtc_data,
800 }, { 788 }, {
801 .compatible = "samsung,exynos3250-rtc", 789 .compatible = "samsung,exynos3250-rtc",
802 .data = (void *)&exynos3250_rtc_data, 790 .data = (void *)&s3c6410_rtc_data,
803 }, 791 },
804 { /* sentinel */ }, 792 { /* sentinel */ },
805}; 793};