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: 66439 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp663728qge; Fri, 22 Apr 2016 04:29:59 -0700 (PDT) X-Received: by 10.98.64.4 with SMTP id n4mr27528677pfa.58.1461324599043; Fri, 22 Apr 2016 04:29:59 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x189si6519946pfx.95.2016.04.22.04.29.58; Fri, 22 Apr 2016 04:29:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 S1752099AbcDVL3j (ORCPT + 13 others); Fri, 22 Apr 2016 07:29:39 -0400 Received: from mail-pf0-f170.google.com ([209.85.192.170]:33360 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753811AbcDVL3h (ORCPT ); Fri, 22 Apr 2016 07:29:37 -0400 Received: by mail-pf0-f170.google.com with SMTP id 184so40868648pff.0 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=LAac2HZsgDGGqy8hG+Yx57x7p+vtkWVmoU2J3+JNaATcvnZ1e+L3aM/yko9L46hz65 yZsAVDcHv0MtXVipOMG2mgYB/l6OI7eNiNvKZ80ndd02i4xQFjp4K863wLUNA4ma6k3U A77KyZYaE7sGoQAW+JF0xO/XBGJp3mkEmCyBLFIUOlOgCAIN60y/aR2N/T1CVtUQmKwi oXM/Hjuo9lNwb2ZwHl3w8OxL2yAPUTgx1PnKmAb+/7bJO3PUIFjklThgT351XIf6UH6h 8aKrYrKfq41GaIXKkwzLP1XYj5LFVuge2KSEPMNMpOSModaVRPuLL/MIPzNALAt1Pl6J q6Mw== X-Gm-Message-State: AOPr4FWQ9N5HzG+MQ2H/taRq7psIjMFLf+1DghBtT/AAkQ6Nnbu1Lrf48N7H6/17t1m2n1RC 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 Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, geert@linux-m68k.org, Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org 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 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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 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(-) -- 2.7.1.410.g6faf27b -- To unsubscribe from this list: send the line "unsubscribe linux-pm" 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-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)