[PATCHv2] omap: rx51: Switch rx51_tpa6130a2_data __initdata to __initdata_or_module

Tony Lindgren tony at atomide.com
Mon Dec 20 20:14:02 EST 2010


* Jarkko Nikula <jhnikula at gmail.com> [101218 10:17]:
> 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.

Thanks applying.

Tony



More information about the linux-arm-kernel mailing list