From patchwork Thu Sep 15 10:45:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 9333069 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 6A8BA6077F for ; Thu, 15 Sep 2016 10:45:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5F85329521 for ; Thu, 15 Sep 2016 10:45:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 52F1C29528; Thu, 15 Sep 2016 10:45:26 +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=-3.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, SUSPICIOUS_RECIPS, T_DKIM_INVALID autolearn=unavailable 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 3935829521 for ; Thu, 15 Sep 2016 10:45:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933923AbcIOKnd (ORCPT ); Thu, 15 Sep 2016 06:43:33 -0400 Received: from mail-qk0-f176.google.com ([209.85.220.176]:36090 "EHLO mail-qk0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1766007AbcIOKn2 (ORCPT ); Thu, 15 Sep 2016 06:43:28 -0400 Received: by mail-qk0-f176.google.com with SMTP id z190so42765099qkc.3 for ; Thu, 15 Sep 2016 03:43:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=zZcl5HxD+9bJIacLPli+RCNTHkqI90QRCMjzf7nLNZU=; b=UHPAY1x2W8PDYXJwN8wU1krKBZG6UTVf/KKErg+Q7Y/FhZkgw+0UhaD6hW48DH5SFB 2vYtvTyF7UKziTDjI/7q7Sc9Ru8qeEQgegIAV4UVjyT3Ebc6xRGaEDbkSgg2EmI1oUYe 8yzbALy6j/D9OtUOuhD3xVhswen5NDHD5OFCM= 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=zZcl5HxD+9bJIacLPli+RCNTHkqI90QRCMjzf7nLNZU=; b=Gjc7lrCchys/jpDcIStdya4AGhL1J53f78prj/x6szBwl6Lf/esQGpgsM1ULGZwgcQ U6nRrHRNRf3LwZzT5VwHrzR4ZgSUEOV3t8GJpGhhYVnQSUggVl084GXlO1GRBuzCGdRa ebeSIXDsgETIq2VFholIJ0Jw7W4L6o4supsIBmmu0IaZp3uVtIZI3qucBUnTtuw2kPK0 cuijhg1tTQcLJbdDy+gvd+2/cefBqGzntxhZvJERVRBarGXibxSTK8ClyymlRtCrFGzB UTwodzdsFcN9ZtzAsrkxIhJnOEQWmnQXeozfs4UbzyM4/miOPOeMukrLlvapOrLSsLs1 4LAw== X-Gm-Message-State: AE9vXwP1YOx7Qb/uxTMg6ekydcbQcKpI5oxYYk7h1ceexVz5RtAM921pCTwFnhZdR+GQh8fp X-Received: by 10.194.5.230 with SMTP id v6mr8846352wjv.92.1473936207328; Thu, 15 Sep 2016 03:43:27 -0700 (PDT) Received: from dell.home (host31-51-85-248.range31-51.btcentralplus.com. [31.51.85.248]) by smtp.gmail.com with ESMTPSA id e2sm2861231wjn.11.2016.09.15.03.43.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Sep 2016 03:43:26 -0700 (PDT) From: Lee Jones To: linus.walleij@linaro.org, tony@atomide.com, linux-omap@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/7] mfd: db8500-prcmu: Remove unused *prcmu_set_ddr_opp() calls Date: Thu, 15 Sep 2016 11:45:17 +0100 Message-Id: <20160915104521.14286-4-lee.jones@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20160915104521.14286-1-lee.jones@linaro.org> References: <20160915104521.14286-1-lee.jones@linaro.org> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP There are no call sites for these functions. Strip them out. Signed-off-by: Lee Jones Acked-by: Ulf Hansson --- drivers/mfd/db8500-prcmu.c | 19 ------------------- include/linux/mfd/db8500-prcmu.h | 6 ------ include/linux/mfd/dbx500-prcmu.h | 9 --------- 3 files changed, 34 deletions(-) diff --git a/drivers/mfd/db8500-prcmu.c b/drivers/mfd/db8500-prcmu.c index 388e268..ca38a6a 100644 --- a/drivers/mfd/db8500-prcmu.c +++ b/drivers/mfd/db8500-prcmu.c @@ -938,25 +938,6 @@ int db8500_prcmu_get_ddr_opp(void) return readb(PRCM_DDR_SUBSYS_APE_MINBW); } -/** - * db8500_set_ddr_opp - set the appropriate DDR OPP - * @opp: The new DDR operating point to which transition is to be made - * Returns: 0 on success, non-zero on failure - * - * This function sets the operating point of the DDR. - */ -static bool enable_set_ddr_opp; -int db8500_prcmu_set_ddr_opp(u8 opp) -{ - if (opp < DDR_100_OPP || opp > DDR_25_OPP) - return -EINVAL; - /* Changing the DDR OPP can hang the hardware pre-v21 */ - if (enable_set_ddr_opp) - writeb(opp, PRCM_DDR_SUBSYS_APE_MINBW); - - return 0; -} - /* Divide the frequency of certain clocks by 2 for APE_50_PARTLY_25_OPP. */ static void request_even_slower_clocks(bool enable) { diff --git a/include/linux/mfd/db8500-prcmu.h b/include/linux/mfd/db8500-prcmu.h index 0bd6944..7ba67b5 100644 --- a/include/linux/mfd/db8500-prcmu.h +++ b/include/linux/mfd/db8500-prcmu.h @@ -538,7 +538,6 @@ int db8500_prcmu_get_arm_opp(void); int db8500_prcmu_set_ape_opp(u8 opp); int db8500_prcmu_get_ape_opp(void); int db8500_prcmu_request_ape_opp_100_voltage(bool enable); -int db8500_prcmu_set_ddr_opp(u8 opp); int db8500_prcmu_get_ddr_opp(void); u32 db8500_prcmu_read(unsigned int reg); @@ -594,11 +593,6 @@ static inline int prcmu_release_usb_wakeup_state(void) return 0; } -static inline int db8500_prcmu_set_ddr_opp(u8 opp) -{ - return 0; -} - static inline int db8500_prcmu_get_ddr_opp(void) { return DDR_100_OPP; diff --git a/include/linux/mfd/dbx500-prcmu.h b/include/linux/mfd/dbx500-prcmu.h index 5d37460..2e2c6a6 100644 --- a/include/linux/mfd/dbx500-prcmu.h +++ b/include/linux/mfd/dbx500-prcmu.h @@ -269,10 +269,6 @@ unsigned long prcmu_clock_rate(u8 clock); long prcmu_round_clock_rate(u8 clock, unsigned long rate); int prcmu_set_clock_rate(u8 clock, unsigned long rate); -static inline int prcmu_set_ddr_opp(u8 opp) -{ - return db8500_prcmu_set_ddr_opp(opp); -} static inline int prcmu_get_ddr_opp(void) { return db8500_prcmu_get_ddr_opp(); @@ -489,11 +485,6 @@ static inline int prcmu_get_arm_opp(void) return ARM_100_OPP; } -static inline int prcmu_set_ddr_opp(u8 opp) -{ - return 0; -} - static inline int prcmu_get_ddr_opp(void) { return DDR_100_OPP;