From patchwork Tue Jun 28 14:45:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Shyti X-Patchwork-Id: 9203401 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 946936074E for ; Tue, 28 Jun 2016 14:46:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 856F6285E7 for ; Tue, 28 Jun 2016 14:46:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7A0BE28608; Tue, 28 Jun 2016 14:46:51 +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=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2B2FA285E7 for ; Tue, 28 Jun 2016 14:46:51 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bHuHq-00061M-TD; Tue, 28 Jun 2016 14:46:50 +0000 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bHuHV-0005sN-TY; Tue, 28 Jun 2016 14:46:31 +0000 Received: by mail-pf0-x242.google.com with SMTP id t190so1962346pfb.2; Tue, 28 Jun 2016 07:46:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8Qbe13lE9oFwtYYvMnFcBhHJeYbamN4L9opfvsEzQvw=; b=qRsiJ8ZeXP7HqHmf0vUhGg3ocz8WvbvJfawhpCxJpFcqg18SGAti+WTkYrH2l7za39 bLrVbiLFlzd5F1S8gpydzhEcarJH4qcL3q2u4oW4Vhw+fqliE8wbzxgguFiLGBOQS+5k BnI8OWv/F6Xo6nEFtFrzBTgIb/S/uLYHRxsTzEyeDcYv/EeQJKLlE0TZnn0FcMtunDwh 95oUTb34m+FgcKVYpslr7k5mQb+NzR8pmVWNSXGogd3n0y94kr1HrcS7dZ1mw/2Gq9b7 Onkxn12evBOgGilr76MZ/AmThi/GH3/GrLEorRmf5iVQNbB+YaupU8d2p6zLIFSM1Pe7 jr3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=8Qbe13lE9oFwtYYvMnFcBhHJeYbamN4L9opfvsEzQvw=; b=QRinCVHbUindTLNF7Tt5lVlDrDxtEiUG0gmrEiaXEMtiqUSMw4js9h1hrZYhudFJWU ewbAZLTzFPKsfs4ZwIynOU6EAeyCJuDM92avYHrdJGVyAjs00mBQ51zVQ7wXRdkjxu2l 1Hs6NlyBYuAugtqiuriFWsDguxE6u2pbPbVTqPGYAxvx3ygzCEtuc2tzOI6pKBBh+q08 NF91MiOivlk+SBKeloBEETb/7LcWQAq7ha8LFeY2gQp6bu2MixUpK5tkP0BGNrnClci6 +mK03MfhZI0FJJa/rQwEzdI4W2wBOhztpFHssfEmhst7yy/Q3XtpzbngU2oRImVdlJvX a+aw== X-Gm-Message-State: ALyK8tKwHzBdHL9wBhJYA/yZtR//9gApNQCwW4Qi9iQNh/MLToMZrd5zowsn0eUFfNfgmQ== X-Received: by 10.98.196.203 with SMTP id h72mr2536604pfk.54.1467125169090; Tue, 28 Jun 2016 07:46:09 -0700 (PDT) Received: from hector.zhora.eu ([211.196.237.107]) by smtp.gmail.com with ESMTPSA id i3sm235167pfk.30.2016.06.28.07.46.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jun 2016 07:46:08 -0700 (PDT) From: andi.shyti@gmail.com X-Google-Original-From: andi@etezian.org To: Heiko Stuebner , Jeffy Chen , Xing Zheng , Michael Turquette , Stephen Boyd Subject: [PATCH 2/2] clk: rockchip: remove unused rockchip_clk_protect_critical function Date: Tue, 28 Jun 2016 17:45:37 +0300 Message-Id: <1467125137-25999-3-git-send-email-andi@etezian.org> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1467125137-25999-1-git-send-email-andi@etezian.org> References: <1467125137-25999-1-git-send-email-andi@etezian.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160628_074629_999062_4354A1D3 X-CRM114-Status: GOOD ( 10.81 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-rockchip@lists.infradead.org, Andi Shyti , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Andi Shyti because there is no need anymore to enable critical clocks in each driver, this function is not necessary anymore. The drivers having critical clocks use the CLK_IS_CRITICAL flag. Signed-off-by: Andi Shyti --- drivers/clk/rockchip/clk.c | 14 -------------- drivers/clk/rockchip/clk.h | 1 - 2 files changed, 15 deletions(-) diff --git a/drivers/clk/rockchip/clk.c b/drivers/clk/rockchip/clk.c index 7ffd134..d9bc61b 100644 --- a/drivers/clk/rockchip/clk.c +++ b/drivers/clk/rockchip/clk.c @@ -525,20 +525,6 @@ void __init rockchip_clk_register_armclk(struct rockchip_clk_provider *ctx, rockchip_clk_add_lookup(ctx, clk, lookup_id); } -void __init rockchip_clk_protect_critical(const char *const clocks[], - int nclocks) -{ - int i; - - /* Protect the clocks that needs to stay on */ - for (i = 0; i < nclocks; i++) { - struct clk *clk = __clk_lookup(clocks[i]); - - if (clk) - clk_prepare_enable(clk); - } -} - static void __iomem *rst_base; static unsigned int reg_restart; static void (*cb_restart)(void); diff --git a/drivers/clk/rockchip/clk.h b/drivers/clk/rockchip/clk.h index 2194ffa..2fb7acb 100644 --- a/drivers/clk/rockchip/clk.h +++ b/drivers/clk/rockchip/clk.h @@ -614,7 +614,6 @@ void rockchip_clk_register_armclk(struct rockchip_clk_provider *ctx, const struct rockchip_cpuclk_reg_data *reg_data, const struct rockchip_cpuclk_rate_table *rates, int nrates); -void rockchip_clk_protect_critical(const char *const clocks[], int nclocks); void rockchip_register_restart_notifier(struct rockchip_clk_provider *ctx, unsigned int reg, void (*cb)(void));