[PATCH 3.0] OMAP: drop __initdata tags from static struct platform_device declarations

Russell King - ARM Linux linux at arm.linux.org.uk
Thu Jun 16 18:18:32 EDT 2011


On Fri, Jun 17, 2011 at 12:02:46AM +0200, Janusz Krzysztofik wrote:
> Pointers to statically declared platform device structures which are 
> registered with platform_device_register() are then used during run time 
> to access these structure members, for example from platform_uevent() 
> and much more. Therefore, these structures should never be placed inside 
> sections which are dropped after boot. Fix platform devices incorrectly 
> tagged with __initdata which happen to exist inside OMAP sub-trees.

It would be a good idea to cc the authors of the patches which
introduced this stuff, so that they learn that registering platform
devices marked with __initdata is a bad idea.  We live in hope that
doing so will prevent it happening in the future.




More information about the linux-arm-kernel mailing list