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: 9203395 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 AC7E6608A6 for ; Tue, 28 Jun 2016 14:46:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9D21A28607 for ; Tue, 28 Jun 2016 14:46:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 91E3228608; Tue, 28 Jun 2016 14:46:38 +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 318EC28609 for ; Tue, 28 Jun 2016 14:46:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752294AbcF1OqM (ORCPT ); Tue, 28 Jun 2016 10:46:12 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:33184 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752279AbcF1OqK (ORCPT ); Tue, 28 Jun 2016 10:46:10 -0400 Received: by mail-pf0-f196.google.com with SMTP id c74so1976126pfb.0; 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=eMcaEANFIDJrVsiHJ7SXUlEBcErF/YrGEBGnQMNeF1XquFXeWQW+nYwtYnC1qFH46c /0d5QLdK9gk5lGlZpBmzkeBDgFri+Ku+RhkZTzAHfcfB9dqlZ8vyVaqgXr7hp5yKHKJE T6o3S8t3NTI8Z0BUdWSNMsSZMx8cPAUqffBlLPebnKfBCKNR3w3kqjOCNUvfNOjN9T0W N9rwGk1P9I4H9tmuP61cQ0gVvjxSBGC3UEAxZNGfwMwbOQ75L84lCHFVvVe2YtKaMhWi WBpRlnfE6aZBZ0Vxbjo9wviNnwrAEEMFwam8rrpPqgJBLAigunmQkaUDgbhd0qoNlhdO 43Vg== X-Gm-Message-State: ALyK8tJYPDcQyiqSpJ+n/fGadfZkV3lMdg/59iDg2D8yqe/OsiBLo2LbHAvtWQRcewMg3g== 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 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 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> 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));