]> git.baikalelectronics.ru Git - kernel.git/commit
omap: rx51: Switch rx51_tpa6130a2_data __initdata to__initdata_or_module
authorJarkko Nikula <jhnikula@gmail.com>
Sat, 18 Dec 2010 18:17:10 +0000 (18:17 +0000)
committerTony Lindgren <tony@atomide.com>
Tue, 21 Dec 2010 02:48:16 +0000 (18:48 -0800)
commitdd7662179206ba4510a6bb40ea8bdb33272905db
tree6c168c7a9825a19384bc6b332301bae007a36914
parent00e977f29bd9320fe3bc8693938dd7bb824abf3d
omap: rx51: Switch rx51_tpa6130a2_data __initdata to__initdata_or_module

If the TPA6130 is compiled as module the id and power_gpio values are
arbitrary at module probing time since the rx51_tpa6130a2_data was marked as
__initdata. Fix this by using __initdata_or_module. Then __initdata is
defined only if the kernel is built without CONFIG_MODULES and omitted
otherwise.

Signed-off-by: Jarkko Nikula <jhnikula@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-rx51-peripherals.c