From patchwork Thu Apr 21 08:59:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 66352 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp17191qge; Thu, 21 Apr 2016 02:00:13 -0700 (PDT) X-Received: by 10.98.42.4 with SMTP id q4mr18736063pfq.23.1461229209656; Thu, 21 Apr 2016 02:00:09 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ku9si159298pab.99.2016.04.21.02.00.09; Thu, 21 Apr 2016 02:00:09 -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 S1752416AbcDUI7x (ORCPT + 29 others); Thu, 21 Apr 2016 04:59:53 -0400 Received: from mail-pf0-f176.google.com ([209.85.192.176]:35797 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752371AbcDUI7v (ORCPT ); Thu, 21 Apr 2016 04:59:51 -0400 Received: by mail-pf0-f176.google.com with SMTP id n1so28203509pfn.2 for ; Thu, 21 Apr 2016 01:59:50 -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=fuM6Oqo3MnWYbnPe72W7xEtSIT9f4XKeNxM9nA7X+No=; b=KNmj2pmtoiCICb3Nfow4nwDISDbVL7NBEW6QBiwZS6RJuza3D8viuySYKlXkiRsnwk 5VI70A5OpEDB7q6iuWTYC1ZH2F+0KAZGhee/sOnbgcUTYdnoy9ZWd5NhGEnO8H+p0tws 0s6oix5lGM9SegoBfl9RpamWM9K5dQSe1hgmw= 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=fuM6Oqo3MnWYbnPe72W7xEtSIT9f4XKeNxM9nA7X+No=; b=f+7vdHvJOdJRoID3zDVbW4HoIi1m2x+RPIhbuEZqLfU1Tm5kdbkWZouUYpWq9SYoum sdqFXkjNEGzcmzNursOxaua8nVC0nV1jezOq2RDH+HJu9t/DQdiWRWbW7c+qpixnVSdo DeRRNVE40hxTLY2qn8qQwrLXKM8NSsxBqOsuO64vyTtOTfulj9Uy8ZuxocSSpZ9cSLBV i29OVIkzEUQv+djCx4Z1g+HOUl3tE0XeLTkh7pccFU5jvRi3Cgu/gRVwOOKxqBVGJUWb u4Sj5GjxgrXhye4EIL2F0tQ6BLVlmIA6l3PsOHJ/xB01AtBFKl0a9cTlfB9eLJJjqecP xlOQ== X-Gm-Message-State: AOPr4FUVoEG5owmsAQFzQ8zh422DDXpCa49Zx1r5YF0fVmDMdY/eaQ+N7E0Jg4r1J2gFRhxs X-Received: by 10.98.70.67 with SMTP id t64mr18926353pfa.110.1461229190398; Thu, 21 Apr 2016 01:59:50 -0700 (PDT) Received: from localhost ([122.167.26.250]) by smtp.gmail.com with ESMTPSA id j62sm3107598pfb.15.2016.04.21.01.59.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Apr 2016 01:59:49 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Viresh Kumar Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, nm@ti.com, sboyd@codeaurora.org, arnd.bergmann@linaro.org, thomas.petazzoni@free-electrons.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/10] cpufreq: mvebu: Use generic platdev driver Date: Thu, 21 Apr 2016 14:29:02 +0530 Message-Id: <1c2cc13d812e04f231ddd4313e3ba6a54fb4632c.1461228504.git.viresh.kumar@linaro.org> 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: Thomas Petazzoni Cc: Jason Cooper Cc: Andrew Lunn Cc: Gregory Clement Cc: Sebastian Hesselbarth Signed-off-by: Viresh Kumar --- arch/arm/mach-mvebu/pmsu.c | 2 -- drivers/cpufreq/cpufreq-dt-platdev.c | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.7.1.410.g6faf27b diff --git a/arch/arm/mach-mvebu/pmsu.c b/arch/arm/mach-mvebu/pmsu.c index 79d0a5d9da8e..f24f46776fbb 100644 --- a/arch/arm/mach-mvebu/pmsu.c +++ b/arch/arm/mach-mvebu/pmsu.c @@ -685,8 +685,6 @@ static int __init armada_xp_pmsu_cpufreq_init(void) dev_err(cpu_dev, "%s: failed to mark OPPs as shared: %d\n", __func__, ret); } - - 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 69b2a222c84e..5704a92c52dc 100644 --- a/drivers/cpufreq/cpufreq-dt-platdev.c +++ b/drivers/cpufreq/cpufreq-dt-platdev.c @@ -33,6 +33,8 @@ static const struct of_device_id machines[] = { { .compatible = "marvell,berlin", }, + { .compatible = "marvell,armadaxp", }, + { .compatible = "samsung,exynos3250", }, { .compatible = "samsung,exynos4210", }, { .compatible = "samsung,exynos4212", },