Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754762AbbGaRLz (ORCPT ); Fri, 31 Jul 2015 13:11:55 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:42263 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753891AbbGaREL (ORCPT ); Fri, 31 Jul 2015 13:04:11 -0400 From: Stephen Boyd To: Mike Turquette , Stephen Boyd Cc: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Tero Kristo Subject: [PATCH 07/26] clk: ti: Remove CLK_IS_BASIC check Date: Fri, 31 Jul 2015 10:03:47 -0700 Message-Id: <1438362246-6664-8-git-send-email-sboyd@codeaurora.org> X-Mailer: git-send-email 2.3.0.rc1.33.g42e4583 In-Reply-To: <1438362246-6664-1-git-send-email-sboyd@codeaurora.org> References: <1438362246-6664-1-git-send-email-sboyd@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1418 Lines: 44 This code is never called with a basic clock type, so the check here is not doing anything useful and is blocking the removal of __clk_get_flags(). Remove the check so we can delete the __clk_get_flags() API. Cc: Tero Kristo Signed-off-by: Stephen Boyd --- drivers/clk/ti/autoidle.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/clk/ti/autoidle.c b/drivers/clk/ti/autoidle.c index 94f0dcd94181..527f2c6dd0aa 100644 --- a/drivers/clk/ti/autoidle.c +++ b/drivers/clk/ti/autoidle.c @@ -47,9 +47,6 @@ int omap2_clk_deny_idle(struct clk *clk) { struct clk_hw_omap *c; - if (__clk_get_flags(clk) & CLK_IS_BASIC) - return -EINVAL; - c = to_clk_hw_omap(__clk_get_hw(clk)); if (c->ops && c->ops->deny_idle) c->ops->deny_idle(c); @@ -66,9 +63,6 @@ int omap2_clk_allow_idle(struct clk *clk) { struct clk_hw_omap *c; - if (__clk_get_flags(clk) & CLK_IS_BASIC) - return -EINVAL; - c = to_clk_hw_omap(__clk_get_hw(clk)); if (c->ops && c->ops->allow_idle) c->ops->allow_idle(c); -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/