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: 1543641 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 73B98DFFEE for ; Wed, 3 Oct 2012 23:00:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932429Ab2JCXAn (ORCPT ); Wed, 3 Oct 2012 19:00:43 -0400 Received: from mail-da0-f46.google.com ([209.85.210.46]:47064 "EHLO mail-da0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932536Ab2JCXAk (ORCPT ); Wed, 3 Oct 2012 19:00:40 -0400 Received: by mail-da0-f46.google.com with SMTP id n41so1430950dak.19 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=YG+oL3rlwVh+x146jwVaTb5zJzqGAMA6fiyVD8xFEwMNbbnJ/iilFFkSBKIdOFcFBj XAWov9K3W5RhebMpOxYIkPXYrBP4phiSh2fytzkuOQAJrJbLfQMrKI1mI/YHDPPbSywc C6UvJzgsQDCO4CVmbK+2lRVG9lF1d16g48g0XIULl2ruKIj+JI/EPKk9Sl9y28XILiAi J1ZYFNhqdKnXOGFQmtCvOZIY8me4/fftm8N0H9cnSmwcngCRYfqJ2iajAYFx1gYi1ZjQ KAmKh3hPfOV3eDz79g9oF3rmbYLiY7te1Ma95lzuXHAD8n9Nq1Bgo4DOzlAfEOlr4Ww8 vgNA== 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 Cc: linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, Paul Walmsley 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: ALoCoQnrTvOzALejsUscjxIj5wg4jmxii3y+Je1UYjDFfCNp2QwhLSmzIBp6aZoLvzsB9m/BFu/8 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.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");