提交 7c63dedc 编写于 作者: S Stephen Boyd 提交者: David Brown

msm: qsd8x50: Platform data isn't init data

Remove the SMC91x platform and resource data from initdata.  These
will continue to be accessed after init, and must remain available.
Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: NDavid Brown <davidb@codeaurora.org>
上级 50bc0ef4
...@@ -42,7 +42,7 @@ static const unsigned qsd8x50_surf_smc91x_gpio __initdata = 156; ...@@ -42,7 +42,7 @@ static const unsigned qsd8x50_surf_smc91x_gpio __initdata = 156;
* at run-time: they vary from board to board, and the true * at run-time: they vary from board to board, and the true
* configuration won't be known until boot. * configuration won't be known until boot.
*/ */
static struct resource smc91x_resources[] __initdata = { static struct resource smc91x_resources[] = {
[0] = { [0] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
...@@ -51,7 +51,7 @@ static struct resource smc91x_resources[] __initdata = { ...@@ -51,7 +51,7 @@ static struct resource smc91x_resources[] __initdata = {
}, },
}; };
static struct platform_device smc91x_device __initdata = { static struct platform_device smc91x_device = {
.name = "smc91x", .name = "smc91x",
.id = 0, .id = 0,
.num_resources = ARRAY_SIZE(smc91x_resources), .num_resources = ARRAY_SIZE(smc91x_resources),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册