From patchwork Fri Apr 22 11:28:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 613559 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3qrtkz0XVLz9t3h for ; Fri, 22 Apr 2016 21:32:27 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b=Jx3dVb+j; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1atZIZ-0007Fx-IF; Fri, 22 Apr 2016 11:30:59 +0000 Received: from mail-pf0-x236.google.com ([2607:f8b0:400e:c00::236]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1atZHZ-0004Mj-0S for linux-arm-kernel@lists.infradead.org; Fri, 22 Apr 2016 11:29:57 +0000 Received: by mail-pf0-x236.google.com with SMTP id y69so22438237pfb.1 for ; Fri, 22 Apr 2016 04:29:36 -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=j0ZTba/iJx0DenQvEjX1winRW5fRu7bvsxBUFjvRMsM=; b=Jx3dVb+jrJlv4Yk5B4O2QwR4Nk1YW4oRPBSU6YTorXY0bg5J+5xVOMVpV+PKiXLfyJ CIZuZfteYA0ggT65xm+Jg4pmBHjly41OADCuWtiJHkOBK8JWpcxP0PNgdlknLgIT+ll+ 45CsIAkGz1TM6kVKpj0t/W1gOY0CwAv+WqQPU= 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=j0ZTba/iJx0DenQvEjX1winRW5fRu7bvsxBUFjvRMsM=; b=kpMNkT7m4ljBQsWciQZuNjdJokp5ZZIdechTX3Og5MS4mkWpb9y7l+vTEn4HSKwo7Y FV9YqYiR3V7bhJsv2Ze1fmdmD5+s4bb7aEd4vfg/xoMclFC1hVIaYfKci+dOtmTJYJ2a ULcEy3XZHf749GYaqp1o+pAtnlSj0yGW0krMvvLOQXk/PDc1wSQLcKaJumBMBzf5pRwy 4ouqTF96Ki4GBSHotyeAOXb6Hf3xBDQRyaSYjNSoOHQdfEU21q1lqKcYQHMXHsWUfOAN O3jSEGUoqAcLoT/fMedJiYUzGj4fXn/MNSArHWoWCFMA2Yxy354gM9ke11srfGAUzNWu Bqeg== X-Gm-Message-State: AOPr4FVYfT4XVm7h7iIEM0tzZzduyJUEuNhtkYdXXqmWnAW5yh6gECj12NUP7tVPhwIHqxLI X-Received: by 10.98.13.77 with SMTP id v74mr27813140pfi.162.1461324576306; Fri, 22 Apr 2016 04:29:36 -0700 (PDT) Received: from localhost ([122.167.26.250]) by smtp.gmail.com with ESMTPSA id q20sm7784928pfi.63.2016.04.22.04.29.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Apr 2016 04:29:35 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Michal Simek , =?UTF-8?q?S=C3=B6ren=20Brinkmann?= , Viresh Kumar Subject: [PATCH V2 8/9] cpufreq: zynq: Use generic platdev driver Date: Fri, 22 Apr 2016 16:58:46 +0530 Message-Id: X-Mailer: git-send-email 2.7.1.410.g6faf27b In-Reply-To: References: In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160422_042957_162830_E4CE5BE5 X-CRM114-Status: GOOD ( 13.14 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:400e:c00:0:0:0:236 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linaro-kernel@lists.linaro.org, Arnd Bergmann , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, geert@linux-m68k.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.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 Acked-by: Arnd Bergmann --- arch/arm/mach-zynq/common.c | 2 -- drivers/cpufreq/cpufreq-dt-platdev.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 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 24dde5e256d4..5ad29383e862 100644 --- a/drivers/cpufreq/cpufreq-dt-platdev.c +++ b/drivers/cpufreq/cpufreq-dt-platdev.c @@ -68,6 +68,8 @@ static const struct of_device_id machines[] __initconst = { { .compatible = "ti,omap3", }, { .compatible = "ti,omap4", }, { .compatible = "ti,omap5", }, + + { .compatible = "xlnx,zynq-7000", }, }; static int __init cpufreq_dt_platdev_init(void)