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: 148822 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp3736806lji; Mon, 15 Oct 2018 05:31:39 -0700 (PDT) X-Google-Smtp-Source: ACcGV62KFicS/MCyult8EeHFTsDoGgMGcLxSjcA2E55p65c2jio1u2M07Mc0GS2sA1ymMXS5G87e X-Received: by 2002:a63:1122:: with SMTP id g34-v6mr15716520pgl.85.1539606699565; Mon, 15 Oct 2018 05:31:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539606699; cv=none; d=google.com; s=arc-20160816; b=ZGi7PAQVyZ4lTpg6N0PNv5Da4vZFJ0/pLY0Aoexwy1TVbC7UMW/AnNoPnL9UE9z0nc q1rAUkaPLA57sGdCK/d+08IZRJKGab8N82fCdLizw2S/zNVX5nmrUVdr2CNotKcjf+C+ BM0EJSq8qDdcU2NOSk/uLrAaSupJzQgz75hmJ4ccrHcgYtBcghYxgK7W10oIOSGzECMT 7QIIUG6QuhOMT/3DjCLRu/tvsiLDc8TTeZviU/WHaQRzO86l7XQy3/cwZ596IVc77R2G X+pix+nheG8wkHakcI4pJq6NKHAa8WRbD0ddn1s5mlGidyLX5UkqQe6P0iX/11q2WOPM EeSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=hE4KIJfsgG80RlWzLC4i+vSpLTiGkNSGTs/k+EYthPI=; b=YazBipEHE8/LIvcbT6uK5TjRCgyn/IzcrHE+zhz1xmaPWlQ05VnylvYntP27f4XpMj X7D2qErZApFAXLdgq5h8Q5G89eFGmu3e+JP54iPeb22uxvLGOMTB+9LDNsas0AODZWss +6GNKgBbRgrfsVfmPOaYl0bSDf2wIZJMVPbyvg4MVyshKZGoYsVbTkyF8wVeab8VoJNI iTzNKFZpz41eQoNrUVhUpFY5qOSzzCo26+dxKUwatpfaMQz4puut2UgPD3+RQKlw4fR0 9LT5otSDknkQPTA2UKd1PB75ERDQX5V903EcgEWuR84GjsiGG6E1vjxrB/iGVsXzwVX0 1ijw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=phOC8a6d; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e21-v6si10454373pgk.311.2018.10.15.05.31.39; Mon, 15 Oct 2018 05:31:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=phOC8a6d; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726615AbeJOUQn (ORCPT + 3 others); Mon, 15 Oct 2018 16:16:43 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:51529 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726515AbeJOUQm (ORCPT ); Mon, 15 Oct 2018 16:16:42 -0400 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 Cc: Marek Szyprowski , Will Deacon , Catalin Marinas , Marc Zyngier , Thomas Gleixner , Daniel Lezcano , Krzysztof Kozlowski , Chanwoo Choi , Bartlomiej Zolnierkiewicz , Inki Dae 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+zrMWk+xNYLM6f38BusenxNVaLy7vmsFnMOL+PyWLtkbvsFn/v/GOz2LxpKrPF y48nWBx4PdbMW8PosWlVJ5vHnWt72DzenTvH7rF5Sb1H35ZVjB6fN8kFsEdx2aSk5mSWpRbp 2yVwZVw9upet4CZ7xfndOxgbGDeydTFycEgImEgsuMrbxcjFISSwglFix9UNLBDOZ0aJA4fv scMU3frkBxFfxigxZc0FNgingUniXuMb1i5GTg42AUOJrrddbCC2iEC2ROfjB4wgNrPAImaJ A8eEQWxhAUeJH6vXMYHYLAKqEvu3HGIGsXkFbCRuLGljAbElBOQlVm84ABbnFLCVOPx/FdhF EgIH2CT+nN7FClHkInHi2xqoBmGJV8e3sEPYMhKdHQeZIBqaGSXaZ8xih3B6GCW2ztnBBlFl LXH4+EVWiPP4JCZtm84M8SevREebEESJh0RDy1RmiDcnMErMvjGZbQKj5AJGhlWM4qmlxbnp qcWGeanlesWJucWleel6yfm5mxiB0Xz63/FPOxi/Xko6xCjAwajEwyvAcyRaiDWxrLgy9xCj BAezkgiv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eucas1p2bca15d1e0f54c0a580c04d9af7411f68 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181015123134eucas1p2bca15d1e0f54c0a580c04d9af7411f68 References: <20181015123112.9379-1-m.szyprowski@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org 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 --- drivers/clocksource/exynos_mct.c | 4 ---- 1 file changed, 4 deletions(-) -- 2.17.1 Reviewed-by: Chanwoo Choi 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);