From patchwork Thu Apr 21 08:43:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 66343 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp11634qge; Thu, 21 Apr 2016 01:44:58 -0700 (PDT) X-Received: by 10.98.52.5 with SMTP id b5mr18886993pfa.9.1461228298085; Thu, 21 Apr 2016 01:44:58 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id mz1si96382pab.72.2016.04.21.01.44.57; Thu, 21 Apr 2016 01:44:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752299AbcDUIog (ORCPT + 29 others); Thu, 21 Apr 2016 04:44:36 -0400 Received: from mail-pf0-f170.google.com ([209.85.192.170]:32871 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752172AbcDUIoa (ORCPT ); Thu, 21 Apr 2016 04:44:30 -0400 Received: by mail-pf0-f170.google.com with SMTP id 184so28192635pff.0 for ; Thu, 21 Apr 2016 01:44:30 -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:mime-version:content-transfer-encoding; bh=yJV4pyYr4SKnIDU0iyUiA9XddsWRk/b7FOzx3IdodFw=; b=JSow0VtMBYd4kVC7q2sDWRZMoPnXGDgSLQ/Mi1FaydNBq1l8kIjO/wmEx+9ARgid7g wpPrkycwomN7mzcIp0HMMy0PgXm0kE8aK4yHWQSaW9Pxb+JuIiSCOZMdavZpzTpEtkOa /zb4mQFk5fQUIFnQWZ/ZYTAJoYqu7/I5V3MUI= 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:mime-version :content-transfer-encoding; bh=yJV4pyYr4SKnIDU0iyUiA9XddsWRk/b7FOzx3IdodFw=; b=AMEcD63SQxPzhyL5/s8JhzQBNF7UN55hqwCEUuvXbU+xIzgxbQSZaGMP2eq9D5mjwt J7Ycm+EHeNIPHZtqdgYIxt7P25fFbBGmW4QK/y1tzkt0fH8Zkw+C3lw1XrhkTP6fxHz+ PvAtcAOjp7x9RjyLnK5WztFK5J6wknoiHHnzZZYj88WxxKDvn8V8+m++Ygnv//h1PM9Z CAnUu6ICm/Je6pbXYDLbTKYRIRDR0ExG6C42NLAYlYLdpErl6FgagEcB/sRYnMHS4idM ub7duko7LqB1Jjh7wX5PzO3lfW2i4q7iztrexiy2FGRxscfdMXA8TiqRJ0A6glBO4yzO QH+Q== X-Gm-Message-State: AOPr4FUdB9UsV/oD3iiWYyrbynb42J7+XUs4d0EVbwtdK1yyZaWf7JvUiVSsORaVYGxrou1q X-Received: by 10.98.26.205 with SMTP id a196mr18123223pfa.46.1461228264739; Thu, 21 Apr 2016 01:44:24 -0700 (PDT) Received: from localhost ([122.167.26.250]) by smtp.gmail.com with ESMTPSA id c200sm2971956pfb.33.2016.04.21.01.44.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Apr 2016 01:44:24 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Michal Simek , =?UTF-8?q?S=C3=B6ren=20Brinkmann?= , Viresh Kumar Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, arnd.bergmann@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/8] cpufreq: zynq: Use generic platdev driver Date: Thu, 21 Apr 2016 14:13:53 +0530 Message-Id: <9d64ef8232464d1ea5ad786b318fab49c4332005.1461228081.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.7.1.410.g6faf27b In-Reply-To: References: In-Reply-To: References: MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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: Michal Simek Cc: Sören Brinkmann Signed-off-by: Viresh Kumar --- arch/arm/mach-zynq/common.c | 2 -- drivers/cpufreq/cpufreq-dt-platdev.c | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.7.1.410.g6faf27b diff --git a/arch/arm/mach-zynq/common.c b/arch/arm/mach-zynq/common.c index 860ffb663f02..da876d28ccbc 100644 --- a/arch/arm/mach-zynq/common.c +++ b/arch/arm/mach-zynq/common.c @@ -110,7 +110,6 @@ static void __init zynq_init_late(void) */ static void __init zynq_init_machine(void) { - struct platform_device_info devinfo = { .name = "cpufreq-dt", }; struct soc_device_attribute *soc_dev_attr; struct soc_device *soc_dev; struct device *parent = NULL; @@ -145,7 +144,6 @@ static void __init zynq_init_machine(void) of_platform_populate(NULL, of_default_bus_match_table, NULL, parent); platform_device_register(&zynq_cpuidle_device); - platform_device_register_full(&devinfo); } static void __init zynq_timer_init(void) diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c index db6767a1f975..c8a3eceac356 100644 --- a/drivers/cpufreq/cpufreq-dt-platdev.c +++ b/drivers/cpufreq/cpufreq-dt-platdev.c @@ -64,6 +64,8 @@ static const struct of_device_id machines[] = { { .compatible = "ti,omap3", }, { .compatible = "ti,omap4", }, { .compatible = "ti,omap5", }, + + { .compatible = "xlnx,zynq-7000", }, }; static int __init cpufreq_dt_platdev_init(void)