[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <8137134.6Dsv9n3KFK@wuerfel>
Date: Thu, 21 Apr 2016 12:17:07 +0200
From: Arnd Bergmann <arnd@...db.de>
To: linux-arm-kernel@...ts.infradead.org
Cc: Viresh Kumar <viresh.kumar@...aro.org>,
linaro-kernel@...ts.linaro.org, linux-pm@...r.kernel.org,
Rafael Wysocki <rjw@...ysocki.net>,
linux-kernel@...r.kernel.org, Sascha Hauer <kernel@...gutronix.de>,
arnd.bergmann@...aro.org, Shawn Guo <shawnguo@...nel.org>
Subject: Re: [PATCH 2/8] cpufreq: imx: Use generic platdev driver
On Thursday 21 April 2016 15:20:32 Viresh Kumar wrote:
> > > diff --git a/arch/arm/mach-imx/imx27-dt.c b/arch/arm/mach-imx/imx27-dt.c
> > > index bd42d1bd10af..90c62bf01f9e 100644
> > > --- a/arch/arm/mach-imx/imx27-dt.c
> > > +++ b/arch/arm/mach-imx/imx27-dt.c
> > > @@ -20,11 +20,7 @@
> > >
> > > static void __init imx27_dt_init(void)
> > > {
> > > - struct platform_device_info devinfo = { .name = "cpufreq-dt", };
> > > -
> > > of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
> > > -
> > > - platform_device_register_full(&devinfo);
> > > }
> > >
> >
> > Please remove the entire function now, a NULL .init_machine machine
> > callback pointer has the same effect as the remaining line.
> >
> > The rest of the patch is fine.
>
> Perhaps that should be done in a separate patch I feel. Will do so after this is
> merged.
>
I would do it in the same patch, just like you remove some of the
.init_late() callbacks elsewhere, but it clearly works either way, so
do as you like unless Shawn or Sascha have a strong opinion on the
matter.
Arnd
Powered by blists - more mailing lists