Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932485Ab3HGRqX (ORCPT ); Wed, 7 Aug 2013 13:46:23 -0400 Received: from avon.wwwdotorg.org ([70.85.31.133]:59639 "EHLO avon.wwwdotorg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752717Ab3HGRqW (ORCPT ); Wed, 7 Aug 2013 13:46:22 -0400 Message-ID: <520287EA.5060508@wwwdotorg.org> Date: Wed, 07 Aug 2013 11:46:18 -0600 From: Stephen Warren User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: Viresh Kumar CC: rjw@sisk.pl, swarren@nvidia.com, linaro-kernel@lists.linaro.org, patches@linaro.org, cpufreq@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, mturquette@linaro.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 5/6] ARM: Tegra: start using cpufreq-cpu0 driver References: <6610c86618b781b00eba446ca19035e077d99691.1375886595.git.viresh.kumar@linaro.org> In-Reply-To: <6610c86618b781b00eba446ca19035e077d99691.1375886595.git.viresh.kumar@linaro.org> X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1231 Lines: 31 On 08/07/2013 08:46 AM, Viresh Kumar wrote: > cpufreq-cpu0 driver can be probed over DT only if a corresponding device node is > created for the SoC which wants to use it. Lets create a platform device for > cpufreq-cpu0 driver for Tegra. > > Also it removes the Kconfig entry responsible to compiling tegra-cpufreq driver > and hence there will not be any conflicts between two cpufreq drivers. > diff --git a/arch/arm/mach-tegra/tegra.c b/arch/arm/mach-tegra/tegra.c > static void __init tegra_dt_init(void) > { > + struct platform_device_info devinfo = { .name = "cpufreq-cpu0", }; static? const? > struct soc_device_attribute *soc_dev_attr; > struct soc_device *soc_dev; > struct device *parent = NULL; > > tegra_clocks_apply_init_table(); > + platform_device_register_full(&devinfo); This seems awfully like going back to board files. Shouldn't something that binds to the CPU nodes register the cpufreq device automatically, based on the CPU's compatible value? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/