[PATCH] ARM: make of_device_ids const

sanjeev sharma sanjeevsharmaengg at gmail.com
Wed Feb 18 21:14:49 PST 2015


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

Regards
Sanjeev Sharma

>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel



More information about the linux-arm-kernel mailing list