From patchwork Fri Apr 22 11:28:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 8910741 Return-Path: X-Original-To: patchwork-linux-rockchip@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4AFB7BF29F for ; Fri, 22 Apr 2016 11:30:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5CC4A2020F for ; Fri, 22 Apr 2016 11:30:22 +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 8A87420212 for ; Fri, 22 Apr 2016 11:30:21 +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 1atZHv-0006H8-Ad; Fri, 22 Apr 2016 11:30:19 +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 1atZHP-0004EX-8S for linux-rockchip@lists.infradead.org; Fri, 22 Apr 2016 11:29:48 +0000 Received: by mail-pf0-x22d.google.com with SMTP id 184so40867469pff.0 for ; Fri, 22 Apr 2016 04:29:26 -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=vQPe/LX8CNLH22TZGon+7e/LKuelrHu/p3Xrr9+2tPo=; b=PVwstoGU/CV62UnUGRCIhgjXDERmdu1UaKlnhg5+lRdDDVW5/ni11j8nQGFu++K/cp g8rRS8Xeo+m/81WjTc3Eh/X8H9iOZpf/7dmJIataPcMF5m7t+BIK/R10BOgRSbM77F0o cNCDOiB4ctEZz8fJYEvPEMHFCtBC+wbRN4sds= 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=vQPe/LX8CNLH22TZGon+7e/LKuelrHu/p3Xrr9+2tPo=; b=nDdBYSCxybqazWOng+PTOvMEElDlnYoKpICO4FS3FNtrXeFX98eNvCoTZwmQSmiVO2 TjglLKsPxnaprF3HCWPiI/wPNwHUGnfQ/TWr5o44QyNJGSv2wDP+oHgxVuowFIEA0+S5 CFB5fqrPDIJgmJRZewQHcJ5LnbwAJarKz81WtBH2LeOkqRx11/X/TC6NQ0dpRD9FWrFW NjuwkLz4DzYu96gewmD3g/gym0DGPfDj3B6W7rPX/n3Qu6zFlV55hMlzeCRCCfbbogoN Lc2XiJYDTmOTZg9PxnSq7r/bLBgvPC9NQiAtznbia+VOsJjsrVb0hLL5XsIeeisbztzv seNQ== X-Gm-Message-State: AOPr4FV1FxkUJgv9OPTTdvbsEUA+vPtoGnQx5kKVbnWM18XY/XavdvG+zMrKWkjMpQNQS9q6 X-Received: by 10.98.64.79 with SMTP id n76mr27696767pfa.149.1461324566509; Fri, 22 Apr 2016 04:29:26 -0700 (PDT) Received: from localhost ([122.167.26.250]) by smtp.gmail.com with ESMTPSA id dh4sm8953814pad.37.2016.04.22.04.29.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Apr 2016 04:29:25 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Heiko Stuebner , Viresh Kumar Subject: [PATCH V2 5/9] cpufreq: rockchip: Use generic platdev driver Date: Fri, 22 Apr 2016 16:58:43 +0530 Message-Id: <736a08a0210e7e8b33e82e5439b7c00b612d0eff.1461324267.git.viresh.kumar@linaro.org> 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-20160422_042947_433705_F6393D0D X-CRM114-Status: GOOD ( 11.49 ) 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, Arnd Bergmann , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Finley Xiao , geert@linux-m68k.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 From: Finley Xiao This patch add rockchip's compatible string to the compat list and remove similar code from platform code for supporting generic platdev driver. Signed-off-by: Finley Xiao Acked-by: Viresh Kumar Acked-by: Arnd Bergmann Signed-off-by: Viresh Kumar Reviewed-by: Heiko Stuebner --- arch/arm/mach-rockchip/rockchip.c | 1 - drivers/cpufreq/cpufreq-dt-platdev.c | 11 +++++++++++ 2 files changed, 11 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 4e525f6ec59f..75fa921d8540 100644 --- a/drivers/cpufreq/cpufreq-dt-platdev.c +++ b/drivers/cpufreq/cpufreq-dt-platdev.c @@ -29,6 +29,17 @@ static const struct of_device_id machines[] __initconst = { { .compatible = "samsung,exynos5800", }, #endif + { .compatible = "rockchip,rk2928", }, + { .compatible = "rockchip,rk3036", }, + { .compatible = "rockchip,rk3066a", }, + { .compatible = "rockchip,rk3066b", }, + { .compatible = "rockchip,rk3188", }, + { .compatible = "rockchip,rk3228", }, + { .compatible = "rockchip,rk3288", }, + { .compatible = "rockchip,rk3366", }, + { .compatible = "rockchip,rk3368", }, + { .compatible = "rockchip,rk3399", }, + { .compatible = "ti,omap2", }, { .compatible = "ti,omap3", }, { .compatible = "ti,omap4", },