From patchwork Mon Mar 30 15:19:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 6122331 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C5CBABF4A6 for ; Mon, 30 Mar 2015 15:20:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0319B20386 for ; Mon, 30 Mar 2015 15:20:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2A1A42035B for ; Mon, 30 Mar 2015 15:20:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753297AbbC3PTs (ORCPT ); Mon, 30 Mar 2015 11:19:48 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:36931 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752823AbbC3PTq (ORCPT ); Mon, 30 Mar 2015 11:19:46 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NM1007746RN6490@mailout3.w1.samsung.com>; Mon, 30 Mar 2015 16:23:47 +0100 (BST) X-AuditID: cbfec7f4-b7f126d000001e9a-3c-551968e5f901 Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id E5.7E.07834.5E869155; Mon, 30 Mar 2015 16:16:53 +0100 (BST) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync2.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NM1003HO6KRXF10@eusync2.samsung.com>; Mon, 30 Mar 2015 16:19:43 +0100 (BST) From: Krzysztof Kozlowski To: Kukjin Kim , Alessandro Zummo , Chanwoo Choi , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, rtc-linux@googlegroups.com, Alexandre Belloni Cc: Kyungmin Park , Krzysztof Kozlowski Subject: [PATCH 1/2] drivers/rtc/rtc-s3c.c: Integrate Exynos3250 into S3C6410 Date: Mon, 30 Mar 2015 17:19:32 +0200 Message-id: <1427728773-29065-2-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1427728773-29065-1-git-send-email-k.kozlowski@samsung.com> References: <1427728773-29065-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprELMWRmVeSWpSXmKPExsVy+t/xK7pPMyRDDbr/WVssuXiV3aLj2mIm i+tfnrNazD9yjtXi9QtDi/7Hr5ktzja9YbfY9Pgaq8XlXXPYLGac38dksb+zg9GB2+PJpouM HnsmnmTz2LSqk81j85J6j74tqxg9ps/7yeTxeZNcAHsUl01Kak5mWWqRvl0CV0br+aOMBW+5 KlpmnGJrYPzF0cXIySEhYCLxpns3O4QtJnHh3nq2LkYuDiGBpYwSO45fZgVJCAn0MUn0zo8A sdkEjCU2L18CViQicJFJ4tDOw8wgCWaBOImDB+aBTRIW8JX4fLcXzGYRUJW4P+8sC4jNK+Au 8XTDCSaIbXISJ49NBlvAKeAhsf9dDyPEMneJ1xNes05g5F3AyLCKUTS1NLmgOCk911CvODG3 uDQvXS85P3cTIyQcv+xgXHzM6hCjAAejEg8vx0yJUCHWxLLiytxDjBIczEoivLdSJEOFeFMS K6tSi/Lji0pzUosPMTJxcEo1MHJtm89c7PVxVkNTotZ/9QnS56YIubh0JdvN5dfrltog6Dk3 bun8iKqnr7PuibebN77Rjt1Z2iKTvu0K5zRW+Tjzbzrd97eeWXi5xbRSr329/tulE+uvMJ1b 2J/d7l+dt2FDDV+tarFJc5nl3L1BZl214dtNtx0SW6ny2CbobIG61nOdtWfmK7EUZyQaajEX FScCAFYuHqElAgAA Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Alexandre Belloni Reviewed-by: Javier Martinez Canillas --- drivers/rtc/rtc-s3c.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c index fb0c569765c6..5e162eaad277 100644 --- a/drivers/rtc/rtc-s3c.c +++ b/drivers/rtc/rtc-s3c.c @@ -774,18 +774,6 @@ static struct s3c_rtc_data const s3c6410_rtc_data = { .disable = s3c6410_rtc_disable, }; -static struct s3c_rtc_data const exynos3250_rtc_data = { - .max_user_freq = 32768, - .needs_src_clk = true, - .irq_handler = s3c6410_rtc_irq, - .set_freq = s3c6410_rtc_setfreq, - .enable_tick = s3c6410_rtc_enable_tick, - .save_tick_cnt = s3c6410_rtc_save_tick_cnt, - .restore_tick_cnt = s3c6410_rtc_restore_tick_cnt, - .enable = s3c24xx_rtc_enable, - .disable = s3c6410_rtc_disable, -}; - static const struct of_device_id s3c_rtc_dt_match[] = { { .compatible = "samsung,s3c2410-rtc", @@ -801,7 +789,7 @@ static const struct of_device_id s3c_rtc_dt_match[] = { .data = (void *)&s3c6410_rtc_data, }, { .compatible = "samsung,exynos3250-rtc", - .data = (void *)&exynos3250_rtc_data, + .data = (void *)&s3c6410_rtc_data, }, { /* sentinel */ }, };