[PATCH] ARM: make of_device_ids const

Arnd Bergmann arnd at arndb.de
Thu Feb 19 00:07:30 PST 2015


On Thursday 19 February 2015 10:44:49 sanjeev sharma wrote:
> On Thu, Feb 19, 2015 at 2:07 AM, Arnd Bergmann <arnd at arndb.de> wrote:
> > On Wednesday 18 February 2015 21:19:56 Uwe Kleine-König wrote:
> >> of_device_ids (i.e. compatible strings and the respective data) are not
> >> supposed to change at runtime. All functions working with of_device_ids
> >> provided by <linux/of.h> work with const of_device_ids. So mark the
> >> non-const structs in arch/arm as const, too.
> >>
> >> While at it also add some __initconst annotations.
> >>
> >> Acked-by: Jason Cooper <jason at lakedameon.net>
> >> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
> >
> > Applied to fixes branch, thanks!
> >
> >         Arnd
> 
> There are many places in driver also where this need to be fixed.I
> have submitted couple of patches listed below and waiting for the
> response.
> 
> serial:imx make of_device_id array const
> pinctrl: freescale: make of_device_id array const

I'd suggest you send them again after the merge window. Maintainers
often miss patches coming in, or have a long backlog of patches
to look at.

Greg is usually very good at applying patches for the serial drivers
very quickly, but if he hasn't applied the patch within a week, it's
probably not on his radar any more.

For the pinctrl patches, I see that Linus Walleij picked up a couple
of them, and if he missed this one that was probably an oversight, so
just send him a ping or send the patch again with [PATCH RESEND] in
the subject.

	Arnd



More information about the linux-arm-kernel mailing list