From patchwork Mon Dec 1 11:41:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 41757 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 36FD524001 for ; Mon, 1 Dec 2014 11:42:15 +0000 (UTC) Received: by mail-la0-f70.google.com with SMTP id hs14sf2996289lab.9 for ; Mon, 01 Dec 2014 03:42:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:in-reply-to:references :sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=+WMoawofoXcl4MoLD19ahrSJ7hyc5dxgLF/rBHAb1gU=; b=fv8zgULVi963QlTfXqcYYHyIv9156mXBwAenxfr+56QPauEmEr1VbMbsnsvCwUqsUk n0ef9Cux+iA4LMMYgXznEt+bzxtXeWnVLPBSixpi1IZkA+WnKYf93m/NRLf+yhRQok4C hxKfOrcjm6gHZv64Upyn2Ox32b1zKyoEW/MsLgYhd/Ie7MRB7kXHRhG2oUX0pngvZ+Hw uK3OgcEEHF4SsQIXsYrZMPQy7VGboVngSEiqu8eKUYUIcU9yK9FeHE7KaAaq4JIO33F0 DVNeEgDzwOslAqGseikjVbQ1IXrr5Nu90/cpdobxYa8OggHukj/xg8RjQ8HUVkuU1UjS rcXg== X-Gm-Message-State: ALoCoQmb9Aupy6dcEgjelbeSoevgnRjdODHQ4Io3Tk/rGUWKgfB58gWTTKyD75Wy6RuIImpHqf4e X-Received: by 10.194.134.193 with SMTP id pm1mr591074wjb.4.1417434134214; Mon, 01 Dec 2014 03:42:14 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.116.48 with SMTP id jt16ls1002347lab.44.gmail; Mon, 01 Dec 2014 03:42:13 -0800 (PST) X-Received: by 10.112.17.101 with SMTP id n5mr56314291lbd.83.1417434133901; Mon, 01 Dec 2014 03:42:13 -0800 (PST) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id c8si17380276lac.96.2014.12.01.03.42.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 01 Dec 2014 03:42:13 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by mail-la0-f54.google.com with SMTP id pv20so3836428lab.41 for ; Mon, 01 Dec 2014 03:42:13 -0800 (PST) X-Received: by 10.112.62.166 with SMTP id z6mr55053406lbr.74.1417434133784; Mon, 01 Dec 2014 03:42:13 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp269033lbc; Mon, 1 Dec 2014 03:42:12 -0800 (PST) X-Received: by 10.67.22.9 with SMTP id ho9mr5576182pad.77.1417434131754; Mon, 01 Dec 2014 03:42:11 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id al4si28364029pbc.137.2014.12.01.03.42.11 for ; Mon, 01 Dec 2014 03:42:11 -0800 (PST) Received-SPF: none (google.com: linux-pm-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753399AbaLALmG (ORCPT + 12 others); Mon, 1 Dec 2014 06:42:06 -0500 Received: from mail-pa0-f43.google.com ([209.85.220.43]:36559 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753386AbaLALmF (ORCPT ); Mon, 1 Dec 2014 06:42:05 -0500 Received: by mail-pa0-f43.google.com with SMTP id kx10so10974183pab.2 for ; Mon, 01 Dec 2014 03:42:04 -0800 (PST) X-Received: by 10.70.134.74 with SMTP id pi10mr99120628pdb.126.1417434124543; Mon, 01 Dec 2014 03:42:04 -0800 (PST) Received: from localhost ([122.166.92.172]) by mx.google.com with ESMTPSA id qn1sm17421530pdb.42.2014.12.01.03.42.03 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 01 Dec 2014 03:42:03 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki , Arnd Bergmann , Rob Herring , Grant Likely Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Nishanth Menon , Sudeep Holla , Stephen Boyd , devicetree@vger.kernel.org, santosh shilimkar , Lorenzo Pieralisi , Mike Turquette , kesavan.abhilash@gmail.com, catalin.marinas@arm.com, k.chander@samsung.com, olof@lixom.net, ta.omasab@gmail.com, linux-arm-kernel@lists.infradead.org, Viresh Kumar Subject: [RFC V1 4/8] cpufreq: mvebu: reuse dt_device.c to create cpufreq platform device Date: Mon, 1 Dec 2014 17:11:25 +0530 Message-Id: <862271735f97759b517ef8c9eb8ee66bdd8cbec3.1417433163.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.0.3.693.g996b0fd In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , We now have a common interface for create platform device required to probe cpufreq-dt driver (and others as well). Lets create devices from dt_device.c instead of platform specific code. For marvell, we are updating the blacklist instead of DT because the newer kernel should be backwards compatible with older DT as well. We can update the "compatible" property in DT but it wouldn't make a difference as we already have imx in the blacklist. Signed-off-by: Viresh Kumar --- arch/arm/mach-mvebu/pmsu.c | 1 - drivers/cpufreq/dt_device.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-mvebu/pmsu.c b/arch/arm/mach-mvebu/pmsu.c index bbd8664..9d02618 100644 --- a/arch/arm/mach-mvebu/pmsu.c +++ b/arch/arm/mach-mvebu/pmsu.c @@ -644,7 +644,6 @@ static int __init armada_xp_pmsu_cpufreq_init(void) } } - platform_device_register_simple("cpufreq-dt", -1, NULL, 0); return 0; } diff --git a/drivers/cpufreq/dt_device.c b/drivers/cpufreq/dt_device.c index cf01bed..33fc046 100644 --- a/drivers/cpufreq/dt_device.c +++ b/drivers/cpufreq/dt_device.c @@ -27,6 +27,8 @@ static const struct of_device_id compatible_machine_match[] = { { .compatible = "fsl,imx27", .data = "cpufreq-dt" }, { .compatible = "fsl,imx51", .data = "cpufreq-dt" }, + { .compatible = "marvell,armadaxp", .data = "cpufreq-dt" }, + /* BLACKLIST of existing users of arm-bL-cpufreq-dt below */ /* BLACKLIST of existing users of other drivers below */