Commit ba688455 authored by Max Filippov's avatar Max Filippov Committed by Greg Kroah-Hartman

xtensa: xtfpga: fix definitions of platform devices

commit a558d992 upstream.

Remove __initdata attribute, as the devices may be used after init
sections are freed.
Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ed616147
...@@ -195,7 +195,7 @@ void platform_calibrate_ccount(void) ...@@ -195,7 +195,7 @@ void platform_calibrate_ccount(void)
* Ethernet -- OpenCores Ethernet MAC (ethoc driver) * Ethernet -- OpenCores Ethernet MAC (ethoc driver)
*/ */
static struct resource ethoc_res[] __initdata = { static struct resource ethoc_res[] = {
[0] = { /* register space */ [0] = { /* register space */
.start = OETH_REGS_PADDR, .start = OETH_REGS_PADDR,
.end = OETH_REGS_PADDR + OETH_REGS_SIZE - 1, .end = OETH_REGS_PADDR + OETH_REGS_SIZE - 1,
...@@ -213,7 +213,7 @@ static struct resource ethoc_res[] __initdata = { ...@@ -213,7 +213,7 @@ static struct resource ethoc_res[] __initdata = {
}, },
}; };
static struct ethoc_platform_data ethoc_pdata __initdata = { static struct ethoc_platform_data ethoc_pdata = {
/* /*
* The MAC address for these boards is 00:50:c2:13:6f:xx. * The MAC address for these boards is 00:50:c2:13:6f:xx.
* The last byte (here as zero) is read from the DIP switches on the * The last byte (here as zero) is read from the DIP switches on the
...@@ -223,7 +223,7 @@ static struct ethoc_platform_data ethoc_pdata __initdata = { ...@@ -223,7 +223,7 @@ static struct ethoc_platform_data ethoc_pdata __initdata = {
.phy_id = -1, .phy_id = -1,
}; };
static struct platform_device ethoc_device __initdata = { static struct platform_device ethoc_device = {
.name = "ethoc", .name = "ethoc",
.id = -1, .id = -1,
.num_resources = ARRAY_SIZE(ethoc_res), .num_resources = ARRAY_SIZE(ethoc_res),
...@@ -237,13 +237,13 @@ static struct platform_device ethoc_device __initdata = { ...@@ -237,13 +237,13 @@ static struct platform_device ethoc_device __initdata = {
* UART * UART
*/ */
static struct resource serial_resource __initdata = { static struct resource serial_resource = {
.start = DUART16552_PADDR, .start = DUART16552_PADDR,
.end = DUART16552_PADDR + 0x1f, .end = DUART16552_PADDR + 0x1f,
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}; };
static struct plat_serial8250_port serial_platform_data[] __initdata = { static struct plat_serial8250_port serial_platform_data[] = {
[0] = { [0] = {
.mapbase = DUART16552_PADDR, .mapbase = DUART16552_PADDR,
.irq = DUART16552_INTNUM, .irq = DUART16552_INTNUM,
...@@ -256,7 +256,7 @@ static struct plat_serial8250_port serial_platform_data[] __initdata = { ...@@ -256,7 +256,7 @@ static struct plat_serial8250_port serial_platform_data[] __initdata = {
{ }, { },
}; };
static struct platform_device xtavnet_uart __initdata = { static struct platform_device xtavnet_uart = {
.name = "serial8250", .name = "serial8250",
.id = PLAT8250_DEV_PLATFORM, .id = PLAT8250_DEV_PLATFORM,
.dev = { .dev = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment