From mboxrd@z Thu Jan 1 00:00:00 1970 From: horms@verge.net.au (Simon Horman) Date: Mon, 23 Jun 2014 21:08:16 +0900 Subject: [PATCH] ARM: shmobile: add cpufreq-cpu0 driver for common SH-Mobile In-Reply-To: References: <06e32c91dbce3c24ccbe84e3af2a35199662bca0.1403487159.git.horms+renesas@verge.net.au> Message-ID: <20140623120811.GA2795@verge.net.au> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Mon, Jun 23, 2014 at 09:38:09AM +0530, Viresh Kumar wrote: > On Mon, Jun 23, 2014 at 7:55 AM, Simon Horman > wrote: > > diff --git a/arch/arm/mach-shmobile/cpufreq.c b/arch/arm/mach-shmobile/cpufreq.c > > > +int __init shmobile_cpufreq_init(void) > > +{ > > + struct device_node *np; > > + > > + np = of_cpu_device_node_get(0); > > + if (np == NULL) { > > + pr_err("failed to find cpu0 node\n"); > > + return 0; > > + } > > + > > + if (of_get_property(np, "operating-points", NULL)) > > Probably you don't need any of above checks as these are done from > cpufreq-cpu0 probe as well.. So, simply create a platform device and > let cpufreq-cpu0 driver decide its fate. Thanks. Inami-san, could you look into this and make an incremental patch as appropriate? > > > + platform_device_register_simple("cpufreq-cpu0", -1, NULL, 0); > > + > > + of_node_put(np); > > + > > + return 0; > > +} > -- > To unsubscribe from this list: send the line "unsubscribe linux-sh" in > the body of a message to majordomo at vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >