From patchwork Wed Oct 3 23:00:29 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 1543821 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 85D3340AC9 for ; Wed, 3 Oct 2012 23:02:59 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TJXwC-0007UR-1s; Wed, 03 Oct 2012 23:01:08 +0000 Received: from mail-pb0-f49.google.com ([209.85.160.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TJXvk-0007Qm-NK for linux-arm-kernel@lists.infradead.org; Wed, 03 Oct 2012 23:00:41 +0000 Received: by mail-pb0-f49.google.com with SMTP id xa7so9827895pbc.36 for ; Wed, 03 Oct 2012 16:00:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=Nwe/zYXVm0HXTsajdy35SEf9yzi7YcURwvzMgNz6gDI=; b=NAtTFfOzy8dFv9O3q9crg4X9lAHnNvCyTlKGBpL3u5IIV+il+E6qBIm+4BJJmHrONZ PgexXUix7i4KqsapMfIKJmU8nxMcnbHqmJcKRx4Iu7XyzTyLUFsIKX1j9DQ/blFSfzdU II6vD6QOMs1Ij34v/InGZ1GRC2yPU1tTo4mxDN7yLFVBB8i+UFNC7S11RiZIqvnW0ASq bS5cJkQTHcIlenVo5VcwNNbG56H4HoUDRprdyl1dr2TmCfgfSklDTlcFzDLzcIFv0tV7 2ZAsgoU9pNRXK0BADkJwZ3RkcKkQDmrRR4qM52eMjfmxilhalvD+nbUDVmumeZ6bM077 2FKQ== Received: by 10.66.86.98 with SMTP id o2mr8308603paz.74.1349305240458; Wed, 03 Oct 2012 16:00:40 -0700 (PDT) Received: from localhost (c-24-19-7-36.hsd1.wa.comcast.net. [24.19.7.36]) by mx.google.com with ESMTPS id gk5sm3265684pbc.21.2012.10.03.16.00.39 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 03 Oct 2012 16:00:39 -0700 (PDT) From: Kevin Hilman To: "Rafael J. Wysocki" , linux-omap@vger.kernel.org Subject: [PATCH 4/4] cpufreq: OMAP: use get_cpu_device() instead of omap_device API Date: Wed, 3 Oct 2012 16:00:29 -0700 Message-Id: <1349305229-28480-5-git-send-email-khilman@deeprootsystems.com> X-Mailer: git-send-email 1.7.9.2 In-Reply-To: <1349305229-28480-1-git-send-email-khilman@deeprootsystems.com> References: <1349305229-28480-1-git-send-email-khilman@deeprootsystems.com> X-Gm-Message-State: ALoCoQm320cr9U3kKTkZ3yPrEle0S/zS3sjDPNFa80paa6zqObEOZ7/hSly7WsYVoCkdqwQqnz3t X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.49 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Paul Walmsley , linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Kevin Hilman OMAP PM core code has moved to using the existing, generic CPU devices for attaching OPPs, so the CPUfreq driver can now use the generic get_cpu_device() API instead of the OMAP-specific omap_device API. This allows us to remove the last include from this driver. Cc: Paul Walmsley Signed-off-by: Kevin Hilman --- drivers/cpufreq/omap-cpufreq.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/cpufreq/omap-cpufreq.c b/drivers/cpufreq/omap-cpufreq.c index 5d1f5e4..1f3417a 100644 --- a/drivers/cpufreq/omap-cpufreq.c +++ b/drivers/cpufreq/omap-cpufreq.c @@ -30,8 +30,6 @@ #include #include -#include - /* OPP tolerance in percentage */ #define OPP_TOLERANCE 4 @@ -255,10 +253,10 @@ static struct cpufreq_driver omap_driver = { static int __init omap_cpufreq_init(void) { - mpu_dev = omap_device_get_by_hwmod_name("mpu"); - if (IS_ERR(mpu_dev)) { + mpu_dev = get_cpu_device(0); + if (!mpu_dev) { pr_warning("%s: unable to get the mpu device\n", __func__); - return PTR_ERR(mpu_dev); + return -EINVAL; } mpu_reg = regulator_get(mpu_dev, "vcc");