[PATCH] ARM: make of_device_ids const
Arnd Bergmann
arnd at arndb.de
Wed Feb 18 12:37:48 PST 2015
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
More information about the linux-arm-kernel
mailing list