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: 3367051 Return-Path: X-Original-To: patchwork-linux-mmc@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 762429F3AE for ; Wed, 18 Dec 2013 01:17:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B0208203AF for ; Wed, 18 Dec 2013 01:17:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DED40203B4 for ; Wed, 18 Dec 2013 01:17:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751800Ab3LRBRk (ORCPT ); Tue, 17 Dec 2013 20:17:40 -0500 Received: from mail-pa0-f42.google.com ([209.85.220.42]:58116 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751293Ab3LRBRk (ORCPT ); Tue, 17 Dec 2013 20:17:40 -0500 Received: by mail-pa0-f42.google.com with SMTP id lj1so5279377pab.1 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 Cc: John Tobias 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> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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");