From patchwork Mon Dec 1 11:41:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 41759 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1418B24001 for ; Mon, 1 Dec 2014 11:42:23 +0000 (UTC) Received: by mail-wi0-f200.google.com with SMTP id ex7sf6566728wid.11 for ; Mon, 01 Dec 2014 03:42:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:in-reply-to:references :sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=F7qiBsRapd2b1HO0yiRjyrsbPShCcWomnZ+yKnIHCFY=; b=dQ/sVCL6GyF+eMoSjXdAATppOfFEoBbKkdfidNEUe8PVJKDwdd7cmKS3cVjvEcpOYc UH9/7/wSahyyueXakm0/3ZXNZA5Dn+gdYPM+MooQb4Zo5HCNvI/zDqpBaqlqre9I0nXE lsfrVNfuvMhaY4bhvwiDbS5MKVCUkC1JGolRUmyESIpO352YEcadp8FxbA10KT21BgJF cmq5/lgLlLCIJludABN388Hb9Zfp6f3blB5iaoHezHg4NjcrsfTxIbUS/AJ4STB6iKTs DqlUJwonF6Rb9PIT6sx3SDJLMC2iu/lXJdk3EDkg3G0TQtlhqJyafXAK7BJ84r0SBcNJ 96sA== X-Gm-Message-State: ALoCoQkfkJ21ng+lRYS/UvGJXOzxS9w+iXQDOLy+ujksWAUzupC0ryNXOwQ8CV/9/mAEME8odwTV X-Received: by 10.112.89.195 with SMTP id bq3mr1724256lbb.9.1417434142345; Mon, 01 Dec 2014 03:42:22 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.2.227 with SMTP id 3ls174333lax.49.gmail; Mon, 01 Dec 2014 03:42:22 -0800 (PST) X-Received: by 10.112.199.40 with SMTP id jh8mr56992158lbc.5.1417434142203; Mon, 01 Dec 2014 03:42:22 -0800 (PST) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id l8si17388767lag.90.2014.12.01.03.42.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 01 Dec 2014 03:42:22 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by mail-la0-f49.google.com with SMTP id hs14so8245852lab.8 for ; Mon, 01 Dec 2014 03:42:22 -0800 (PST) X-Received: by 10.112.38.4 with SMTP id c4mr40783508lbk.46.1417434142106; Mon, 01 Dec 2014 03:42:22 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp269050lbc; Mon, 1 Dec 2014 03:42:21 -0800 (PST) X-Received: by 10.70.47.6 with SMTP id z6mr100997756pdm.82.1417434140324; Mon, 01 Dec 2014 03:42:20 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xr5si28398938pbc.116.2014.12.01.03.42.19 for ; Mon, 01 Dec 2014 03:42:20 -0800 (PST) Received-SPF: none (google.com: devicetree-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753405AbaLALmP (ORCPT + 4 others); Mon, 1 Dec 2014 06:42:15 -0500 Received: from mail-pd0-f179.google.com ([209.85.192.179]:41770 "EHLO mail-pd0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753400AbaLALmN (ORCPT ); Mon, 1 Dec 2014 06:42:13 -0500 Received: by mail-pd0-f179.google.com with SMTP id w10so10652018pde.24 for ; Mon, 01 Dec 2014 03:42:13 -0800 (PST) X-Received: by 10.70.128.203 with SMTP id nq11mr98454808pdb.52.1417434133209; Mon, 01 Dec 2014 03:42:13 -0800 (PST) Received: from localhost ([122.166.92.172]) by mx.google.com with ESMTPSA id rh11sm17400566pdb.66.2014.12.01.03.42.11 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 01 Dec 2014 03:42:12 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki , Arnd Bergmann , Rob Herring , Grant Likely Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Nishanth Menon , Sudeep Holla , Stephen Boyd , devicetree@vger.kernel.org, santosh shilimkar , Lorenzo Pieralisi , Mike Turquette , kesavan.abhilash@gmail.com, catalin.marinas@arm.com, k.chander@samsung.com, olof@lixom.net, ta.omasab@gmail.com, linux-arm-kernel@lists.infradead.org, Viresh Kumar Subject: [RFC V1 6/8] cpufreq: zynq: reuse dt_device.c to create cpufreq platform device Date: Mon, 1 Dec 2014 17:11:27 +0530 Message-Id: <8ce96bccf8b5f9165ddd09841bf7b3de73c5c68a.1417433163.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.0.3.693.g996b0fd In-Reply-To: References: In-Reply-To: References: Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , We now have a common interface for create platform device required to probe cpufreq-dt driver (and others as well). Lets create devices from dt_device.c instead of platform specific code. For zynq, we are updating the blacklist instead of DT because the newer kernel should be backwards compatible with older DT as well. We can update the "compatible" property in DT but it wouldn't make a difference as we already have imx in the blacklist. Signed-off-by: Viresh Kumar --- arch/arm/mach-zynq/common.c | 2 -- drivers/cpufreq/dt_device.c | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-zynq/common.c b/arch/arm/mach-zynq/common.c index 26f92c2..add3647 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); zynq_slcr_init(); } diff --git a/drivers/cpufreq/dt_device.c b/drivers/cpufreq/dt_device.c index 85dc002..2075228 100644 --- a/drivers/cpufreq/dt_device.c +++ b/drivers/cpufreq/dt_device.c @@ -32,6 +32,8 @@ static const struct of_device_id compatible_machine_match[] = { { .compatible = "renesas,sh7372", .data = "cpufreq-dt" }, { .compatible = "renesas,sh73a0", .data = "cpufreq-dt" }, + { .compatible = "xlnx,zynq-7000", .data = "cpufreq-dt" }, + /* BLACKLIST of existing users of arm-bL-cpufreq-dt below */ /* BLACKLIST of existing users of other drivers below */