From patchwork Thu Apr 21 08:43:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 66341 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp11512qge; Thu, 21 Apr 2016 01:44:40 -0700 (PDT) X-Received: by 10.66.235.129 with SMTP id um1mr18720078pac.17.1461228279529; Thu, 21 Apr 2016 01:44:39 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n79si22889964pfi.149.2016.04.21.01.44.39; Thu, 21 Apr 2016 01:44:39 -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 S1751485AbcDUIoZ (ORCPT + 13 others); Thu, 21 Apr 2016 04:44:25 -0400 Received: from mail-pf0-f181.google.com ([209.85.192.181]:35271 "EHLO mail-pf0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752174AbcDUIoU (ORCPT ); Thu, 21 Apr 2016 04:44:20 -0400 Received: by mail-pf0-f181.google.com with SMTP id n1so28068341pfn.2 for ; Thu, 21 Apr 2016 01:44:19 -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=e2bkDZP0d+oWgpxZOKvNx6LZt84K4ki9oNmEZHiRCDY=; b=YAywfnbCr7G4GRsL864QiBlYeDAt7DqZK1kB2bHCjDmQZxKIAvf9sQB/W+uMyGOhhX 0fCQFii0WF+IipQQv4CSLL2kzIWSO6HplntyhpniQv6OZJO7DCad2/+Hp1FD1uj9kezZ WpiAH8he67Fj1JiUXgo4l3nmT7hpnEc2n3sSE= 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=e2bkDZP0d+oWgpxZOKvNx6LZt84K4ki9oNmEZHiRCDY=; b=X0upJDGnAGn5ZcRwsQ/U+X0Vo5nvybeysl6GXfVheyBgcVMPzrPhxBrC5HbS7GNhKK pg7XjmKZUCvM//r9qgT1jKIMG8ZugCssLldkjn3knBEl2qE4qxUgZUvMNIrP8E5nR+wt WAkJHNVYjuBTxETAYXa5ch973LmZWYLqXfxGvcaFBVfrnwlRVhVn1UkfgjY+3IKAOAWr WVCdMS7rwHCi0YYdaPM+tLkJlSCZY2O88OhOcjKfTmwHUTkudoTKgWq1UiAcOQq5DEcr W/x2hBHJW4kvqXksWEfFq8Ratq9PVTiB2KM3Wc50GIS7mYGf51kRflq6q1ox4BwlzpDR G+wg== X-Gm-Message-State: AOPr4FX0tAAzxzWEwiCq7jo3Te9h2te9jghZL4fbb4XkyM+nPDZPV1gkZaG7xWd27Ceno9pT X-Received: by 10.98.101.1 with SMTP id z1mr18813375pfb.95.1461228254528; Thu, 21 Apr 2016 01:44:14 -0700 (PDT) Received: from localhost ([122.167.26.250]) by smtp.gmail.com with ESMTPSA id 16sm2973724pfk.28.2016.04.21.01.44.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Apr 2016 01:44:13 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Heiko Stuebner , Viresh Kumar Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, arnd.bergmann@linaro.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/8] cpufreq: rockchip: Use generic platdev driver Date: Thu, 21 Apr 2016 14:13:50 +0530 Message-Id: X-Mailer: git-send-email 2.7.1.410.g6faf27b In-Reply-To: References: In-Reply-To: References: 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: Heiko Stuebner Signed-off-by: Viresh Kumar --- arch/arm/mach-rockchip/rockchip.c | 1 - drivers/cpufreq/cpufreq-dt-platdev.c | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) -- 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-rockchip/rockchip.c b/arch/arm/mach-rockchip/rockchip.c index 3f07cc5dfe5f..beb71da5d9c8 100644 --- a/arch/arm/mach-rockchip/rockchip.c +++ b/arch/arm/mach-rockchip/rockchip.c @@ -74,7 +74,6 @@ static void __init rockchip_dt_init(void) { rockchip_suspend_init(); of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); - platform_device_register_simple("cpufreq-dt", 0, NULL, 0); } static const char * const rockchip_board_dt_compat[] = { diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c index 3d7d459aed25..b831f1463227 100644 --- a/drivers/cpufreq/cpufreq-dt-platdev.c +++ b/drivers/cpufreq/cpufreq-dt-platdev.c @@ -29,6 +29,13 @@ static const struct of_device_id machines[] = { { .compatible = "samsung,exynos5800", }, #endif + { .compatible = "rockchip,rk2928", }, + { .compatible = "rockchip,rk3066a", }, + { .compatible = "rockchip,rk3066b", }, + { .compatible = "rockchip,rk3188", }, + { .compatible = "rockchip,rk3228", }, + { .compatible = "rockchip,rk3288", }, + { .compatible = "ti,omap2", }, { .compatible = "ti,omap3", }, { .compatible = "ti,omap4", },