From patchwork Fri Apr 22 11:28:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 66437 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp663582qge; Fri, 22 Apr 2016 04:29:39 -0700 (PDT) X-Received: by 10.98.36.130 with SMTP id k2mr27707505pfk.128.1461324578573; Fri, 22 Apr 2016 04:29:38 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p20si6527570pfa.90.2016.04.22.04.29.38; Fri, 22 Apr 2016 04:29:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752097AbcDVL3Z (ORCPT + 3 others); Fri, 22 Apr 2016 07:29:25 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:34300 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753263AbcDVL3X (ORCPT ); Fri, 22 Apr 2016 07:29:23 -0400 Received: by mail-pa0-f41.google.com with SMTP id r5so35431915pag.1 for ; Fri, 22 Apr 2016 04:29:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=MxkP9djYu+ssiactVJ0mKnJ15Znxe5LueYRcurz5nv8=; b=KJcEMA1UarvHMOXlXg/TOLKuGzaeu2SLZnhqfjTZ+1gPh4jCswCadsBvOEMN+bJEao kK+CFcbbA2600l5RBPXt9hEH1YwWZZp+gPhAzi/leI1bpYbq5TSOk2i/uZf+YON3Jn6t URSi0ViR2LdGsbJVA7JjHwcSsj8IpwMon0Vv4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=MxkP9djYu+ssiactVJ0mKnJ15Znxe5LueYRcurz5nv8=; b=cCJ3eCKcnpAyfNtsZk4vrimpD7z5Y6PunZnAJZYZ1LJ2qru6m/8DIr00f/LVpQsBgI J+ua/UK5hNlBxpsX2TljTZ0hSqSzh72huCE/mAqoRbpxD0J0NqPf3h7hAo55fnQiLVcj gmSie4Je8NphT97mYqqLvIaFC1ujcKLKNFu8muRAKHqY9MYJEWJzg84LbsrVegxWfkfn IH32l7wPQw/7N04UBlJ52yFhAHZh6Nx1DJoEyUhzq8xBrLfGDrn9mBgixiRnTCYX5dU2 Lnr6icJv06pJn3s8eo5ETVVj3aBorarPP2DdVdDLheSgSx3b2uz3+tyXiY0zZ3Zhjsum ThyQ== X-Gm-Message-State: AOPr4FXalHrdaAgJqT3mxy+s83vbwrllxcAGV+E4+XO1wCRIbWRbj5alAAuJrD49rg0YJEw2 X-Received: by 10.66.175.110 with SMTP id bz14mr27720031pac.41.1461324562996; Fri, 22 Apr 2016 04:29:22 -0700 (PDT) Received: from localhost ([122.167.26.250]) by smtp.gmail.com with ESMTPSA id 187sm7780397pff.66.2016.04.22.04.29.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Apr 2016 04:29:22 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Kevin Hilman , Tony Lindgren , Viresh Kumar Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, geert@linux-m68k.org, Arnd Bergmann , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH V2 4/9] cpufreq: omap: Use generic platdev driver Date: Fri, 22 Apr 2016 16:58:42 +0530 Message-Id: X-Mailer: git-send-email 2.7.1.410.g6faf27b In-Reply-To: References: In-Reply-To: References: Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org The cpufreq-dt-platdev driver supports creation of cpufreq-dt platform device now, reuse that and remove similar code from platform code. Cc: Tony Lindgren Signed-off-by: Viresh Kumar Acked-by: Arnd Bergmann --- arch/arm/mach-omap2/pm.c | 7 ++----- drivers/cpufreq/cpufreq-dt-platdev.c | 5 +++++ 2 files changed, 7 insertions(+), 5 deletions(-) -- 2.7.1.410.g6faf27b -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c index 58920bc8807b..2f7b11da7d5d 100644 --- a/arch/arm/mach-omap2/pm.c +++ b/arch/arm/mach-omap2/pm.c @@ -277,13 +277,10 @@ static void __init omap4_init_voltages(void) static inline void omap_init_cpufreq(void) { - struct platform_device_info devinfo = { }; + struct platform_device_info devinfo = { .name = "omap-cpufreq" }; if (!of_have_populated_dt()) - devinfo.name = "omap-cpufreq"; - else - devinfo.name = "cpufreq-dt"; - platform_device_register_full(&devinfo); + platform_device_register_full(&devinfo); } static int __init omap2_common_pm_init(void) diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c index 3843314389c7..4e525f6ec59f 100644 --- a/drivers/cpufreq/cpufreq-dt-platdev.c +++ b/drivers/cpufreq/cpufreq-dt-platdev.c @@ -28,6 +28,11 @@ static const struct of_device_id machines[] __initconst = { { .compatible = "samsung,exynos5420", }, { .compatible = "samsung,exynos5800", }, #endif + + { .compatible = "ti,omap2", }, + { .compatible = "ti,omap3", }, + { .compatible = "ti,omap4", }, + { .compatible = "ti,omap5", }, }; static int __init cpufreq_dt_platdev_init(void)