From patchwork Mon Oct 15 12:31:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 10641767 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4C39B18BC for ; Mon, 15 Oct 2018 12:33:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3770328B52 for ; Mon, 15 Oct 2018 12:33:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2AA6A28B79; Mon, 15 Oct 2018 12:33:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2EA0F28B52 for ; Mon, 15 Oct 2018 12:33:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-reply-to:Message-id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=nMrDJJ584rlZUyxMu6p6z1OIkEtKsjDWdxVOW4qES8I=; b=onP4p+/eYfaKGICiXMHzxKDC17 xUVJ9uFk4SNdwdIaiHS0/muiOgkVDQcO4ieIN/1rPWFaHN+Ue3L0DlaFTbkKFfSRK9nalpwS1IBhN m1axFIYGpVthXXdQ93ONVaO9ESs/0IOXwXOtBT3BQCZGNeI1maxlZ8bc+GxnEi64i5GlUKFJkQDeZ sP3T9QQ1H27W7XnzDv/SefYvj4LSSyP0PlnGigLq13tBMa7VYyJLIZmefTICLkL8PBAPnm5iqXm6Y NWhrvMPv0xy1FoxpXikM6Hiq8nOczVJ0siiXbWpCb4oB1FRGmWVs0xDS55uggAuQQbaH2JeXpAULP FzSRVq9g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gC243-0001Lf-89; Mon, 15 Oct 2018 12:33:39 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gC22G-0000V5-7C for linux-arm-kernel@lists.infradead.org; Mon, 15 Oct 2018 12:31:53 +0000 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20181015123136euoutp01cdb676658468bcf30f9e1cf1b6ced1b4~dyCID2asL0673906739euoutp01u; Mon, 15 Oct 2018 12:31:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181015123136euoutp01cdb676658468bcf30f9e1cf1b6ced1b4~dyCID2asL0673906739euoutp01u DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539606696; bh=hE4KIJfsgG80RlWzLC4i+vSpLTiGkNSGTs/k+EYthPI=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=phOC8a6dSNWzc1Z2vqv+YrX8XXsKP2fi5rVT9pJnh+DUdkKAd36xiNy5QCaha3b12 v28+gioR+drxNV02sKQoqkN9tl4HweYIZ+HTlgFN87+eQo28I7B5srw5xA4d/mVYG9 g7zbkValw7R9pL7yTyQOpqMyJBkGOaLuYLZ+cgYY= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181015123135eucas1p12a3f2190d4541140d8affa3a1ec722cc~dyCHjB8Eb1989019890eucas1p1l; Mon, 15 Oct 2018 12:31:35 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 1C.22.04441.7A884CB5; Mon, 15 Oct 2018 13:31:35 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181015123134eucas1p2bca15d1e0f54c0a580c04d9af7411f68~dyCG4vPtX3197531975eucas1p2d; Mon, 15 Oct 2018 12:31:34 +0000 (GMT) X-AuditID: cbfec7f2-5c9ff70000001159-eb-5bc488a72289 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 26.EE.04284.6A884CB5; Mon, 15 Oct 2018 13:31:34 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PGN00GZC4490K70@eusync1.samsung.com>; Mon, 15 Oct 2018 13:31:34 +0100 (BST) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/6] clocksource: exynos_mct: Remove dead code Date: Mon, 15 Oct 2018 14:31:07 +0200 Message-id: <20181015123112.9379-2-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20181015123112.9379-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrPIsWRmVeSWpSXmKPExsWy7djP87rLO45EG+z6yGexccZ6Vov3y3oY La5/ec5qMe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w9upet4CZ7xfndOxgbGDeydTFycEgImEjc+uTXxcjFISSwhFHi6K79TF2MnEBOE5NE xz4DEJtNwFCi620XG4gtIpAtMX9vNzuIzSywhFni5n0HEFtYwFHix+p1YL0sAqoS+7ccYgax eQVsJG4saWMBsSUE5CVWbzgAFucUsJU4/H8VC8QuG4kLx/4yTmDkWcDIsIpRJLW0ODc9t9hQ rzgxt7g0L10vOT93EyMwCLcd+7l5B+OljcGHGAU4GJV4eAV4jkQLsSaWFVfmHmKU4GBWEuGV CDkULcSbklhZlVqUH19UmpNafIhRmoNFSZz3vEFllJBAemJJanZqakFqEUyWiYNTqoExfFH7 DbEvARoRRi8E7hkLtWW6WJV4MITf+HLBZJnMVtMf5+5rr52b9WXKaoNCycbULlH9+90Mmed3 7FxfVherqJ2zflNCwJm9zPKtriGFZzW2bzi/NPVR1D6xSa9yNBInNv80bV67+fO8WZfEHWcb HJS5L/FaYa44k87Xr9eEVhR5fCu7sjZbiaU4I9FQi7moOBEAFHYTOT4CAAA= X-CMS-MailID: 20181015123134eucas1p2bca15d1e0f54c0a580c04d9af7411f68 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181015123134eucas1p2bca15d1e0f54c0a580c04d9af7411f68 References: <20181015123112.9379-1-m.szyprowski@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181015_053148_424665_606DFEF7 X-CRM114-Status: GOOD ( 13.70 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartlomiej Zolnierkiewicz , Marc Zyngier , Catalin Marinas , Daniel Lezcano , Will Deacon , Krzysztof Kozlowski , Inki Dae , Chanwoo Choi , Thomas Gleixner , Marek Szyprowski MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Exynos Multi-Core Timer driver is used only on device-tree based systems, so remove non-dt related code. In case of !CONFIG_OF the code is anyway equal because of_irq_count() has a stub returning 0. Signed-off-by: Marek Szyprowski Reviewed-by: Krzysztof Kozlowski Reviewed-by: Chanwoo Choi --- drivers/clocksource/exynos_mct.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index 7a244b681876..43b335ff4a96 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -581,11 +581,7 @@ static int __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);