From patchwork Wed Dec 18 01:17:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Tobias X-Patchwork-Id: 3367081 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id DD7B19F37A for ; Wed, 18 Dec 2013 01:18:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 285D6203B0 for ; Wed, 18 Dec 2013 01:18:12 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3898A203AF for ; Wed, 18 Dec 2013 01:18:11 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vt5m3-00044v-7L; Wed, 18 Dec 2013 01:18:07 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vt5m1-0000Ak-1C; Wed, 18 Dec 2013 01:18:05 +0000 Received: from mail-pb0-x231.google.com ([2607:f8b0:400e:c01::231]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vt5lw-00009f-VS for linux-arm-kernel@lists.infradead.org; Wed, 18 Dec 2013 01:18:01 +0000 Received: by mail-pb0-f49.google.com with SMTP id jt11so7642418pbb.8 for ; Tue, 17 Dec 2013 17:17:39 -0800 (PST) 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=MiqaXNigWSeK/22C/HFZ2xxRTv6Cxexf4IqFaLphjWE=; b=KmK03JP2oshv9xORdScQiD+s7p1vESdJgVVDbAOAnL5E5NlW71dQzt599Y6p9cnFuR BqqNJKYjaoUoHebW3CJn6fgdZhByR4q73AUqIN1muXmywq5seNCnVqPjB33buLeEAfpD p7JsWlaoYCXrObPSr8cvHr8k0N8KFDgvkRtxbmygYWEzBT5l+3VfgzRIAZKBLPXFi06Z AW0cclgmNX0+J3/JZsqqb8/wC7PUM0iNz7G8KjAwbYhM258p0dfez59Wo+S/BtLy9oWW hQCJhLAl2B3lOd7jcXQISOUypGYaPoi71GLAaDdPaJiSprQmdChTYJbIJ3qjylJ+j9+z VnJg== X-Received: by 10.66.158.99 with SMTP id wt3mr30236371pab.113.1387329459735; Tue, 17 Dec 2013 17:17:39 -0800 (PST) Received: from localhost.localdomain (morse-p.static.monkeybrains.net. [208.90.214.40]) by mx.google.com with ESMTPSA id rz6sm50095689pab.22.2013.12.17.17.17.38 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Dec 2013 17:17:39 -0800 (PST) From: John Tobias To: linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, shawn.guo@linaro.org, festevam@gmail.com, cjb@laptop.org Subject: [PATCH 2/4] Moving of_init_opp_table Date: Tue, 17 Dec 2013 17:17:29 -0800 Message-Id: <1387329451-17480-2-git-send-email-john.tobias.ph@gmail.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1387329451-17480-1-git-send-email-john.tobias.ph@gmail.com> References: <1387329451-17480-1-git-send-email-john.tobias.ph@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131217_201801_106916_42C9EEA6 X-CRM114-Status: UNSURE ( 9.39 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) Cc: John Tobias X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Moving of_init_opp_table from mach-imx6q.c to imx6q-cpufreq.c in order to avoid adding it to mach-imx6sl.c. Just incase the cpu frequency scaling is enabled on iMX6SL. Signed-off-by: John Tobias --- drivers/cpufreq/imx6q-cpufreq.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c index 4b3f18e..2eea3d9 100644 --- a/drivers/cpufreq/imx6q-cpufreq.c +++ b/drivers/cpufreq/imx6q-cpufreq.c @@ -166,6 +166,11 @@ static int imx6q_cpufreq_probe(struct platform_device *pdev) return -ENOENT; } + if (of_init_opp_table(cpu_dev)) { + dev_err(cpu_dev,"failed to init OPP table\n"); + return -ENODEV; + } + arm_clk = devm_clk_get(cpu_dev, "arm"); pll1_sys_clk = devm_clk_get(cpu_dev, "pll1_sys"); pll1_sw_clk = devm_clk_get(cpu_dev, "pll1_sw");