[PATCH 2/3] ARM: make of_device_ids const

Jason Cooper jason at lakedaemon.net
Wed Sep 10 08:17:43 PDT 2014


Uwe,

On Wed, Sep 10, 2014 at 10:26:18AM +0200, 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.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
> ---
...
>  arch/arm/mach-mvebu/coherency.c          | 2 +-
>  arch/arm/mach-mvebu/pmsu.c               | 2 +-

For the mvebu stuff,

Acked-by: Jason Cooper <jason at lakedameon.net>

thx,

Jason.



More information about the linux-arm-kernel mailing list