提交 f0c61d3d 编写于 作者: J Jarkko Nikula 提交者: Tony Lindgren

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: NJarkko Nikula <jhnikula@gmail.com>
Signed-off-by: NTony Lindgren <tony@atomide.com>
上级 f861fc17
...@@ -722,7 +722,7 @@ static struct twl4030_platform_data rx51_twldata __initdata = { ...@@ -722,7 +722,7 @@ static struct twl4030_platform_data rx51_twldata __initdata = {
.vio = &rx51_vio, .vio = &rx51_vio,
}; };
static struct tpa6130a2_platform_data rx51_tpa6130a2_data __initdata = { static struct tpa6130a2_platform_data rx51_tpa6130a2_data __initdata_or_module = {
.id = TPA6130A2, .id = TPA6130A2,
.power_gpio = 98, .power_gpio = 98,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册