From patchwork Thu Feb 13 03:08:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tarek Dakhran X-Patchwork-Id: 3642091 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7AAA6BF13A for ; Thu, 13 Feb 2014 03:11:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A07B020115 for ; Thu, 13 Feb 2014 03:11:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B911C2015D for ; Thu, 13 Feb 2014 03:11:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752564AbaBMDLj (ORCPT ); Wed, 12 Feb 2014 22:11:39 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:44188 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752023AbaBMDLd (ORCPT ); Wed, 12 Feb 2014 22:11:33 -0500 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) 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 <0N0W00KTMZJ7J6A0@mailout3.w1.samsung.com>; Thu, 13 Feb 2014 03:11:31 +0000 (GMT) X-AuditID: cbfec7f5-b7fc96d000004885-a1-52fc37e286d7 Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 30.08.18565.2E73CF25; Thu, 13 Feb 2014 03:11:30 +0000 (GMT) Received: from localhost.localdomain ([168.219.243.98]) by eusync3.samsung.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0N0W0018KZIRMJ60@eusync3.samsung.com>; Thu, 13 Feb 2014 03:11:30 +0000 (GMT) From: Tarek Dakhran To: linux-kernel@vger.kernel.org Cc: Russell King , Kukjin Kim , Daniel Lezcano , Sachin Kamat , Thomas Gleixner , Tarek Dakhran , Vyacheslav Tyrtov , Tomasz Figa , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Tarek Dakhran Subject: [PATCH v1 2/2] clocksource: mct: cleanup, remove non-dt stuff from mct Date: Thu, 13 Feb 2014 12:08:43 +0900 Message-id: <1392260923-31659-3-git-send-email-t.dakhran@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-reply-to: <1392260923-31659-1-git-send-email-t.dakhran@samsung.com> References: <1392260923-31659-1-git-send-email-t.dakhran@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprKLMWRmVeSWpSXmKPExsVy+t/xq7qPzP8EGfx9Y2Ix77OsRe+Cq2wW mx5fY7W4vGsOm8WM8/uYLG5f5rU4+aeX0eJ3zydmi/XPTzFarJ/xmsVi86apzBZTZ/xgd+Dx aGnuYfPYOesuu8eda3vYPN6dO8fusXlJvUffllWMHp83yQWwR3HZpKTmZJalFunbJXBlXPn4 g63gBV/Fka4+5gbGjTxdjJwcEgImEncndTJB2GISF+6tZ+ti5OIQEljKKDH3dRsjhNPLJDGv dwZQhoODTUBbYssOL5AGEQEFic29z1hBapgFNjFLXF7wiQmkRljAX2LvZ1WQGhYBVYkH37eB LeAVcJV4f2c6M8QyRYnuZxPYQGxOATeJnqvNYHEhoJpvi6+zTWDkXcDIsIpRNLU0uaA4KT3X SK84Mbe4NC9dLzk/dxMjJCi/7mBceszqEKMAB6MSD++Dxb+DhFgTy4orcw8xSnAwK4nwykj8 CRLiTUmsrEotyo8vKs1JLT7EyMTBKdXAqDtpbumuWZr/oozvhe1wN5F5mPRsBfOiULv3x0Wd eeS3apz0ZqhdH7O1Ke1X18f1H5MFf737mKsfZrs2521ZieGaB+9ntFteEmhhnHD3UWhC93lZ mc/MC5d47qxaxul64+hiS5/O2VPXlfMnTQmxPHNT7eI27T8pO/9Hfzl26nfj/RPTCxqfdiix FGckGmoxFxUnAgAHKID0KAIAAA== 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=-4.5 required=5.0 tests=BAYES_00,KHOP_BIG_TO_CC, RCVD_IN_DNSWL_HI, 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 mct_init not used anywhere, remove this non-dt stuff. also remove declaration of mct_init in arch/arm/mach-exynos/common.h Signed-off-by: Tarek Dakhran --- arch/arm/mach-exynos/common.h | 2 -- drivers/clocksource/exynos_mct.c | 17 +---------------- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/arch/arm/mach-exynos/common.h b/arch/arm/mach-exynos/common.h index f76967b..8945170 100644 --- a/arch/arm/mach-exynos/common.h +++ b/arch/arm/mach-exynos/common.h @@ -15,8 +15,6 @@ #include #include -void mct_init(void __iomem *base, int irq_g0, int irq_l0, int irq_l1); - struct map_desc; void exynos_init_io(void); void exynos4_restart(enum reboot_mode mode, const char *cmd); diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index 1cde3de..a94a908 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -548,18 +548,6 @@ out_irq: free_percpu_irq(mct_irqs[MCT_L0_IRQ], &percpu_mct_tick); } -void __init mct_init(void __iomem *base, int irq_g0, int irq_l0, int irq_l1) -{ - mct_irqs[MCT_G0_IRQ] = irq_g0; - mct_irqs[MCT_L0_IRQ] = irq_l0; - mct_irqs[MCT_L1_IRQ] = irq_l1; - mct_int_type = MCT_INT_SPI; - - exynos4_timer_resources(NULL, base); - exynos4_clocksource_init(); - exynos4_clockevent_init(); -} - static void __init mct_init_dt(struct device_node *np, unsigned int int_type) { u32 nr_irqs, i; @@ -574,11 +562,8 @@ static void __init mct_init_dt(struct device_node *np, unsigned int int_type) * timer irqs are specified after the four global timer * irqs are specified. */ -#ifdef CONFIG_OF nr_irqs = of_irq_count(np); -#else - nr_irqs = 0; -#endif + for (i = MCT_L0_IRQ; i < nr_irqs; i++) mct_irqs[i] = irq_of_parse_and_map(np, i);