From patchwork Sat Jan 21 17:36:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Murray X-Patchwork-Id: 9530547 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 11EAD601AE for ; Sat, 21 Jan 2017 17:38:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0125E28402 for ; Sat, 21 Jan 2017 17:38:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E730728488; Sat, 21 Jan 2017 17:38: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=-1.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_SORBS_SPAM,T_DKIM_INVALID autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 80C2228402 for ; Sat, 21 Jan 2017 17:38:38 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cUzcX-0001g2-TI; Sat, 21 Jan 2017 17:38:33 +0000 Received: from mail-wm0-f47.google.com ([74.125.82.47]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cUzcT-0001IZ-Jt for linux-arm-kernel@lists.infradead.org; Sat, 21 Jan 2017 17:38:32 +0000 Received: by mail-wm0-f47.google.com with SMTP id c206so91773374wme.0 for ; Sat, 21 Jan 2017 09:38:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embedded-bits.co.uk; s=google; h=from:to:cc:subject:date:message-id; bh=V4HhK+PeRXrA/qDYQqwfRRapMn75R0FqZ3D03DXLuuQ=; b=pfMjfO9FvEfAcDy9lgx+5bo8AQv5Cm915WSpM+uLDNs+7axVeoGLmwhsI5w40SkeZs uOXs6iHApzB4Lt/H2E5B8NHI6+LwDQ0qCODpzx2T6Ptz0b+xxgmQLb3G93ttiXMrfmcM LBau43Op6nFeC86imo4DWKMr0IE90tHl/2KJI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=V4HhK+PeRXrA/qDYQqwfRRapMn75R0FqZ3D03DXLuuQ=; b=Xh9bEpF2hrMmMZqv35Cjha10rQNf9EFo6+s17g1X++H8g6c6lmudY2jOfnidjWciLX XlLtYgwVDAcxYu+stE6PBMC45FdE/Nctlf2C5UnmlX+wBOmijjQM4/8FiL/5WrOGo9g5 S2rZtWZpEeahI7ZkzyikPDIiflV72/+wWk+OmdHdJjZ0FeRJXthFOsQ5oxfTzi8rHFeK vTlCWaPIPbHkjq/YduLORpnhxFvBqhWx7Z84WelG+2bVRum3XqUZ8qhRNepKB/XzXfRX Yk1pGnGu5VGwv+yy6sxll9OEOMFNXTJ+V3Eyyhi9Z7DkXw7/JyDA79hX5gQci4RWYtZ+ lhpw== X-Gm-Message-State: AIkVDXIcis3tumOjWQr0xjqthctTZ3Ib85ODf/qjBR7AkX/Mw5NcNA2rCMotVHSE7+oCpw== X-Received: by 10.28.232.91 with SMTP id f88mr7376575wmh.27.1485020225129; Sat, 21 Jan 2017 09:37:05 -0800 (PST) Received: from beets.home (host86-188-72-58.range86-188.btcentralplus.com. [86.188.72.58]) by smtp.gmail.com with ESMTPSA id t103sm3725071wrc.43.2017.01.21.09.37.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 21 Jan 2017 09:37:04 -0800 (PST) From: Andrew Murray To: linux-omap@vger.kernel.org Subject: [PATCH] ARM: OMAP1/2: clock: Remove unused mpurate cmdline option Date: Sat, 21 Jan 2017 17:36:55 +0000 Message-Id: <1485020215-6550-1-git-send-email-amurray@embedded-bits.co.uk> X-Mailer: git-send-email 2.5.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170121_093830_781828_F43B8197 X-CRM114-Status: GOOD ( 11.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tony Lindgren , Tero Kristo , Paul Walmsley , Andrew Murray , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The 'mpurate' option, historically used for specifying an initial MPU rate at boot, no longer has any effect due to the supporting code being removed as it was 'wrong and dangerous' [1]. This patch removes the remaining dead code associated with the __setup macros to avoid confusion and reduce bloat. [1] https://patchwork.kernel.org/patch/5954631/ Signed-off-by: Andrew Murray --- arch/arm/mach-omap1/clock.c | 20 -------------------- arch/arm/mach-omap1/clock.h | 2 -- arch/arm/mach-omap2/clock.c | 20 -------------------- 3 files changed, 42 deletions(-) diff --git a/arch/arm/mach-omap1/clock.c b/arch/arm/mach-omap1/clock.c index 4f5fd4a..43e3e18 100644 --- a/arch/arm/mach-omap1/clock.c +++ b/arch/arm/mach-omap1/clock.c @@ -720,26 +720,6 @@ EXPORT_SYMBOL(clk_get_parent); * OMAP specific clock functions shared between omap1 and omap2 */ -int __initdata mpurate; - -/* - * By default we use the rate set by the bootloader. - * You can override this with mpurate= cmdline option. - */ -static int __init omap_clk_setup(char *str) -{ - get_option(&str, &mpurate); - - if (!mpurate) - return 1; - - if (mpurate < 1000) - mpurate *= 1000000; - - return 1; -} -__setup("mpurate=", omap_clk_setup); - /* Used for clocks that always have same value as the parent clock */ unsigned long followparent_recalc(struct clk *clk) { diff --git a/arch/arm/mach-omap1/clock.h b/arch/arm/mach-omap1/clock.h index 1e4918a..f2d1be2 100644 --- a/arch/arm/mach-omap1/clock.h +++ b/arch/arm/mach-omap1/clock.h @@ -173,8 +173,6 @@ struct clk_functions { void (*clk_disable_unused)(struct clk *clk); }; -extern int mpurate; - extern int clk_init(struct clk_functions *custom_clocks); extern void clk_preinit(struct clk *clk); extern int clk_register(struct clk *clk); diff --git a/arch/arm/mach-omap2/clock.c b/arch/arm/mach-omap2/clock.c index d058125..d999295 100644 --- a/arch/arm/mach-omap2/clock.c +++ b/arch/arm/mach-omap2/clock.c @@ -112,26 +112,6 @@ void omap2_init_clk_clkdm(struct clk_hw *hw) } } -static int __initdata mpurate; - -/* - * By default we use the rate set by the bootloader. - * You can override this with mpurate= cmdline option. - */ -static int __init omap_clk_setup(char *str) -{ - get_option(&str, &mpurate); - - if (!mpurate) - return 1; - - if (mpurate < 1000) - mpurate *= 1000000; - - return 1; -} -__setup("mpurate=", omap_clk_setup); - /** * omap2_clk_print_new_rates - print summary of current clock tree rates * @hfclkin_ck_name: clk name for the off-chip HF oscillator