From patchwork Thu Apr 21 08:43:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 66340 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp11509qge; Thu, 21 Apr 2016 01:44:39 -0700 (PDT) X-Received: by 10.66.119.177 with SMTP id kv17mr19076987pab.124.1461228279212; 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.38; Thu, 21 Apr 2016 01:44:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752237AbcDUIoY (ORCPT + 29 others); Thu, 21 Apr 2016 04:44:24 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:33491 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752202AbcDUIoT (ORCPT ); Thu, 21 Apr 2016 04:44:19 -0400 Received: by mail-pa0-f43.google.com with SMTP id zm5so27103983pac.0 for ; Thu, 21 Apr 2016 01:44:18 -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=YZsl8rcG0a5Rxr7efus8rQkzVqBo0fYKJigXE05qY4g=; b=Mtt6NdDOwPPTfjbDrnX3FD8cGDxBKbRWWMY07rLvfrjUz0Ncaa8UUYdcZxBd8VtEMb GIP3kek9rraAcQ6jyHPGJ6FASw+otF8Br48Yo9tjKlyRVW3bYnh7JPM4Zl/Uz63HmxP0 QUAoY3M3YBDaWgoUOgJvCt5VotCYhDGUzjhTs= 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=YZsl8rcG0a5Rxr7efus8rQkzVqBo0fYKJigXE05qY4g=; b=H20P7YJNVfxx2qMrtuR+q57ZYZjMXihXbxHeVQE98RhSy7pI8Hp/Y0iKJRKf4+lLJJ /mlS3Bt07xQszRo9hiSRb2RWOOnWo5f36S54TI0vYgKbYKYEv+ErpZP+xD5OYUo5llBS irdNjSxUQZMOMKlyDSUxLqoGZVHHhXylTL9VYD6g/TjLBpkvqyHHQEDVz++2k1UM16le cizeYiCMaXNCO601sHL6M7oYDBsxQDpkHkFjvxss+lbd9oLsyvPEooFk138zolvxzhyE dkBCxV5x4A2PzsoXnAhlhJa5Hri/+MGe+Rb/web2QFhdgjWpWPb1hfFRfKOQl0YXpOla 1RKw== X-Gm-Message-State: AOPr4FVAh5V0NbQpv37RPnHdUQcE4CcHVGpe8eLXZ8NxtV3ecsI03Tob+pwmBBdRaxpBN44F X-Received: by 10.66.118.166 with SMTP id kn6mr18696382pab.33.1461228258311; Thu, 21 Apr 2016 01:44:18 -0700 (PDT) Received: from localhost ([122.167.26.250]) by smtp.gmail.com with ESMTPSA id p128sm2956847pfp.59.2016.04.21.01.44.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Apr 2016 01:44:17 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Simon Horman , Magnus Damm , Viresh Kumar Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, arnd.bergmann@linaro.org, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/8] cpufreq: shmobile: Use generic platdev driver Date: Thu, 21 Apr 2016 14:13:51 +0530 Message-Id: X-Mailer: git-send-email 2.7.1.410.g6faf27b In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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: Simon Horman Cc: Magnus Damm Signed-off-by: Viresh Kumar --- arch/arm/mach-shmobile/Makefile | 1 - arch/arm/mach-shmobile/common.h | 7 ------- arch/arm/mach-shmobile/cpufreq.c | 19 ------------------- drivers/cpufreq/cpufreq-dt-platdev.c | 12 ++++++++++++ 4 files changed, 12 insertions(+), 27 deletions(-) delete mode 100644 arch/arm/mach-shmobile/cpufreq.c -- 2.7.1.410.g6faf27b diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile index a65c80ac9009..c9ea0e6ff4f9 100644 --- a/arch/arm/mach-shmobile/Makefile +++ b/arch/arm/mach-shmobile/Makefile @@ -38,7 +38,6 @@ smp-$(CONFIG_ARCH_EMEV2) += smp-emev2.o headsmp-scu.o platsmp-scu.o # PM objects obj-$(CONFIG_SUSPEND) += suspend.o -obj-$(CONFIG_CPU_FREQ) += cpufreq.o obj-$(CONFIG_PM_RCAR) += pm-rcar.o obj-$(CONFIG_PM_RMOBILE) += pm-rmobile.o obj-$(CONFIG_ARCH_RCAR_GEN2) += pm-rcar-gen2.o diff --git a/arch/arm/mach-shmobile/common.h b/arch/arm/mach-shmobile/common.h index 5464b7a75e30..3b562d87826d 100644 --- a/arch/arm/mach-shmobile/common.h +++ b/arch/arm/mach-shmobile/common.h @@ -25,16 +25,9 @@ static inline int shmobile_suspend_init(void) { return 0; } static inline void shmobile_smp_apmu_suspend_init(void) { } #endif -#ifdef CONFIG_CPU_FREQ -int shmobile_cpufreq_init(void); -#else -static inline int shmobile_cpufreq_init(void) { return 0; } -#endif - static inline void __init shmobile_init_late(void) { shmobile_suspend_init(); - shmobile_cpufreq_init(); } #endif /* __ARCH_MACH_COMMON_H */ diff --git a/arch/arm/mach-shmobile/cpufreq.c b/arch/arm/mach-shmobile/cpufreq.c deleted file mode 100644 index 634d701c56a7..000000000000 --- a/arch/arm/mach-shmobile/cpufreq.c +++ /dev/null @@ -1,19 +0,0 @@ -/* - * CPUFreq support code for SH-Mobile ARM - * - * Copyright (C) 2014 Gaku Inami - * - * This file is subject to the terms and conditions of the GNU General Public - * License. See the file "COPYING" in the main directory of this archive - * for more details. - */ - -#include - -#include "common.h" - -int __init shmobile_cpufreq_init(void) -{ - platform_device_register_simple("cpufreq-dt", -1, NULL, 0); - return 0; -} diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c index b831f1463227..05ac0ea25c49 100644 --- a/drivers/cpufreq/cpufreq-dt-platdev.c +++ b/drivers/cpufreq/cpufreq-dt-platdev.c @@ -29,6 +29,18 @@ static const struct of_device_id machines[] = { { .compatible = "samsung,exynos5800", }, #endif + { .compatible = "renesas,emev2", }, + { .compatible = "renesas,r7s72100", }, + { .compatible = "renesas,r8a73a4", }, + { .compatible = "renesas,r8a7740", }, + { .compatible = "renesas,r8a7778", }, + { .compatible = "renesas,r8a7779", }, + { .compatible = "renesas,r8a7790", }, + { .compatible = "renesas,r8a7791", }, + { .compatible = "renesas,r8a7793", }, + { .compatible = "renesas,r8a7794", }, + { .compatible = "renesas,sh73a0", }, + { .compatible = "rockchip,rk2928", }, { .compatible = "rockchip,rk3066a", }, { .compatible = "rockchip,rk3066b", },