From patchwork Fri Sep 18 13:22:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 313198 Delivered-To: patch@linaro.org Received: by 2002:a92:5ad1:0:0:0:0:0 with SMTP id b78csp1333894ilg; Fri, 18 Sep 2020 06:23:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmZr0EKAOD2gXhZVTHzJCr5R+XhSGq5jhHYCDT6mo0lgSDHi5EgNgvNOdZT8QOj+bB9Vbt X-Received: by 2002:a17:906:9389:: with SMTP id l9mr36796287ejx.537.1600435435088; Fri, 18 Sep 2020 06:23:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600435435; cv=none; d=google.com; s=arc-20160816; b=ZjEnctx0y52u530pETM10XFDdaoPWibKlcZBsmG5ABUOHsVX/W5p1r/iQyCFcqXDQM DFx3qolJwjcWSRmGLaHlVsmXdMgPV20nionQbhneM6z+Y1OSPLMKDMFONLM0fLyDkz6P I5oI9CEJFqAH8Hues2ZuN7t2KXglUZ7y/WGWg1zAtGwGgevi1HrchDk8OBTMvWnFU72U j0Zz35Hu0rpRIfHzyW1e+cAlP8pPuUVeIegsyoDz6YI0DpGOzLnXfubRI2PFgH4h9ptb 4Vpozej2aNAjuT6aAl+1eRFgDK/ONrBEruDXexLr/ZK+GcwVQkSiO+4MC2c5BepzrC/s xcZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=E3IqX37sMCbqf8PcQVppmAfIeIjmK+IXBpADaUCEHbY=; b=maB7T+CLl4yu9kMH0+8XlJmUchpvsstHIljvk/JksaVEnp3m7/2C97uXCvseTd27pm vpW1PnuG5onIyocMQBXznMXavJqsu5H3FaX2nUTqVWh7wijJO6S9siyRhTL4lxprGio/ dTji2oTgUsIa3W67NOUrDqWtELlP23e1SYG5Pcs+TfK1JS2RVFjj5Ha+9/IaRz/cmlvR 22vwrHiOrUGvkOAkB4Ray0lKUjYIMVlEAFNFuRtbCMLFrX9bhPAK9lmvW5v6fhvp0m1X NqKfdU0+uF4k9z4cOk12UAkxmFDeuvH7zBTLB6HDGmY1eyGYCDV8pXN6pCLqgzxXeRLl XCog== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bh20si2139620ejb.294.2020.09.18.06.23.54; Fri, 18 Sep 2020 06:23:55 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726768AbgIRNXq (ORCPT + 6 others); Fri, 18 Sep 2020 09:23:46 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:13307 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726192AbgIRNXM (ORCPT ); Fri, 18 Sep 2020 09:23:12 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 803D653A966E1384A3D6; Fri, 18 Sep 2020 21:23:08 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.253) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Fri, 18 Sep 2020 21:22:59 +0800 From: Zhen Lei To: Rob Herring , devicetree , Daniel Lezcano , Thomas Gleixner , Haojian Zhuang , linux-kernel CC: Zhen Lei , Libin , Kefeng Wang , Jianguo Chen Subject: [PATCH v3 2/9] clocksource: sp804: remove unused sp804_timer_disable() and timer-sp804.h Date: Fri, 18 Sep 2020 21:22:30 +0800 Message-ID: <20200918132237.3552-3-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20200918132237.3552-1-thunder.leizhen@huawei.com> References: <20200918132237.3552-1-thunder.leizhen@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.174.177.253] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Since commit 7484c727b636 ("ARM: realview: delete the RealView board files") and commit 16956fed35fe ("ARM: versatile: switch to DT only booting and remove legacy code"), there's no one to use the functions defined or declared in include/clocksource/timer-sp804.h. Delete it. Signed-off-by: Zhen Lei --- drivers/clocksource/timer-sp804.c | 7 ------- include/clocksource/timer-sp804.h | 29 ----------------------------- 2 files changed, 36 deletions(-) delete mode 100644 include/clocksource/timer-sp804.h -- 1.8.3 diff --git a/drivers/clocksource/timer-sp804.c b/drivers/clocksource/timer-sp804.c index bec2d372e0df018..97b41a493253e0a 100644 --- a/drivers/clocksource/timer-sp804.c +++ b/drivers/clocksource/timer-sp804.c @@ -18,8 +18,6 @@ #include #include -#include - #include "timer-sp.h" static long __init sp804_get_clock_rate(struct clk *clk, const char *name) @@ -67,11 +65,6 @@ static u64 notrace sp804_read(void) return ~readl_relaxed(sched_clock_base + TIMER_VALUE); } -void __init sp804_timer_disable(void __iomem *base) -{ - writel(0, base + TIMER_CTRL); -} - int __init __sp804_clocksource_and_sched_clock_init(void __iomem *base, const char *name, struct clk *clk, diff --git a/include/clocksource/timer-sp804.h b/include/clocksource/timer-sp804.h deleted file mode 100644 index a5b41f31a1c256a..000000000000000 --- a/include/clocksource/timer-sp804.h +++ /dev/null @@ -1,29 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef __CLKSOURCE_TIMER_SP804_H -#define __CLKSOURCE_TIMER_SP804_H - -struct clk; - -int __sp804_clocksource_and_sched_clock_init(void __iomem *, - const char *, struct clk *, int); -int __sp804_clockevents_init(void __iomem *, unsigned int, - struct clk *, const char *); -void sp804_timer_disable(void __iomem *); - -static inline void sp804_clocksource_init(void __iomem *base, const char *name) -{ - __sp804_clocksource_and_sched_clock_init(base, name, NULL, 0); -} - -static inline void sp804_clocksource_and_sched_clock_init(void __iomem *base, - const char *name) -{ - __sp804_clocksource_and_sched_clock_init(base, name, NULL, 1); -} - -static inline void sp804_clockevents_init(void __iomem *base, unsigned int irq, const char *name) -{ - __sp804_clockevents_init(base, irq, NULL, name); - -} -#endif