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: 8897221 Return-Path: X-Original-To: patchwork-linux-rockchip@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7CC459F39A for ; Thu, 21 Apr 2016 08:45:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8C59B20340 for ; Thu, 21 Apr 2016 08:45:18 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D0ADD202EC for ; Thu, 21 Apr 2016 08:45:16 +0000 (UTC) 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 1atAEd-0003Xe-E6; Thu, 21 Apr 2016 08:45:15 +0000 Received: from mail-pf0-x22d.google.com ([2607:f8b0:400e:c00::22d]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1atADz-0001UU-N9 for linux-rockchip@lists.infradead.org; Thu, 21 Apr 2016 08:44:36 +0000 Received: by mail-pf0-x22d.google.com with SMTP id n1so28068340pfn.2 for ; Thu, 21 Apr 2016 01:44:14 -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=c5qxSIuCsw5oHZxay1w5EOylgZ8Q9TnfKluaHNw2nOh7JEPoMt2vAZAUWp1C8btYlb BuMsV9BV9Y+lolmzSzXzCNt77SnPMjkfQlv1VQQkuPxYSHGg2awvjh7XIOlqkuusjY3i Px1k8g5BVEddF3qtcWgIw8ody4VOGFfxDJdYBKjCiOfoBK8YD06kE5dqYkU4e/S0O25P JRYC6snj/PQR+kRZf18FUtu5Kii29RAZOOA4+Uy2kAAhmVhzYiDMndzTRX3o9eGBcnIg Poi8YAy/SZ+/F1VpNNCed6jf3B0cKZlab0GFf1Wk+Sqmbk/YBqsvUmUy1CJ5BEsXYPw9 vCsQ== X-Gm-Message-State: AOPr4FULfqjIcJaymXV4R1mP/HG1NQAUW/RJaiEKlUrtpcra7LRL0medi+Ae02CxBI0niwqF 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 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: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160421_014435_930290_F6338799 X-CRM114-Status: GOOD ( 10.39 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, arnd.bergmann@linaro.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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", },