From patchwork Wed Jun 29 14:45:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Shyti X-Patchwork-Id: 9205687 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 B277B6075F for ; Wed, 29 Jun 2016 15:51:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A3AC02864F for ; Wed, 29 Jun 2016 15:51:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 981EC28673; Wed, 29 Jun 2016 15:51:19 +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=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 781362864F for ; Wed, 29 Jun 2016 15:51:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752642AbcF2Pua (ORCPT ); Wed, 29 Jun 2016 11:50:30 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:33118 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752245AbcF2Pu3 (ORCPT ); Wed, 29 Jun 2016 11:50:29 -0400 Received: by mail-pf0-f195.google.com with SMTP id c74so4855631pfb.0; Wed, 29 Jun 2016 08:49:36 -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=FR59cR6jvSpLY6HXGbP2yo/tEgAkKWhxllcrnh1EBPaXdmtXuQ3naAu/3JjLYZzm9Y /OijspTG+o6FUQyaZFY+If41IC+6/IKMuQTdz3X0L+ip/p4lFDrsBxEEfyyHoVrcbSkf cNLUt57RIvU87OU0nJp+NfNrskWRmtpHMB/gb7gGg9uStPlUU8J2mrnYtyT9Tdo5o7+S 7D6Zr3PFY02qd+ZgAp+LEwJwS+yQZnfi4/uUTeuu8ZI1DhVSrR1wfh66riJzbs9fi3QR 9RvofNzX2ZHPHwYh04sndG0bkDzWztxUtcXngDRHySTlwHXjZC6xgq0r9CRsQYr7IUPb zutg== 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=GuQecSSYpAWin65zirQ3jXPMVilq82xUN22nCVE9/9vdJE1KMv8C+ddBo5cW2ljHa8 qK4mkQ3JyvUbEvRDvxg7s/38xdRpBXQ+Y5tBTj31Qjl3cO2Z29Q32qdTAwt1CE8wOHX+ 35aEaWDeCje4/DOr0OeHp0IXO+obIbi73qDzc5f2CsZsqzp5Wm3Ptv4BAgYcS7IrVPRL rCX++2P1xQN7I5lBJQ3cvX/FSOsDmojMXrFPzvEEGALtBtfu0BwIo1ZfQc8z4NZzS05j VMQJot+pRQ3/yhw+J39Xcvon5oxDRp5yq9E2GQ3yBAGnAfAyjHlm5IkVGiHDWAEmc3CT nfXg== X-Gm-Message-State: ALyK8tLG7NSCCcSpzkFBCMPok5NmE7Ne7EWg7PcB0RLcKnhg0OldkU6OmhbIGROpUU9/PQ== X-Received: by 10.98.33.23 with SMTP id h23mr12397493pfh.42.1467211530770; Wed, 29 Jun 2016 07:45:30 -0700 (PDT) Received: from hector.zhora.eu ([211.196.237.107]) by smtp.gmail.com with ESMTPSA id g63sm6660503pfb.7.2016.06.29.07.45.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Jun 2016 07:45:30 -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 Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Andi Shyti Subject: [PATCH v2 2/2] clk: rockchip: remove unused rockchip_clk_protect_critical function Date: Wed, 29 Jun 2016 17:45:10 +0300 Message-Id: <1467211510-3485-3-git-send-email-andi@etezian.org> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1467211510-3485-1-git-send-email-andi@etezian.org> References: <1467211510-3485-1-git-send-email-andi@etezian.org> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.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));