diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2013-12-24 20:20:36 -0500 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2014-01-14 15:21:25 -0500 |
commit | a558d99263936b8a67d4eff8918745a77bfd8c31 (patch) | |
tree | 1cb5f22ea73be186bfda8bd35127b589884cd60c /arch/xtensa | |
parent | 42beb7628e7a901501e39f520beec67bac3157b1 (diff) |
xtensa: xtfpga: fix definitions of platform devices
Remove __initdata attribute, as the devices may be used after init
sections are freed.
Cc: stable@vger.kernel.org
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa')
-rw-r--r-- | arch/xtensa/platforms/xtfpga/setup.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/xtensa/platforms/xtfpga/setup.c b/arch/xtensa/platforms/xtfpga/setup.c index 25d936e8296f..800227862fe8 100644 --- a/arch/xtensa/platforms/xtfpga/setup.c +++ b/arch/xtensa/platforms/xtfpga/setup.c | |||
@@ -194,7 +194,7 @@ void __init platform_calibrate_ccount(void) | |||
194 | * Ethernet -- OpenCores Ethernet MAC (ethoc driver) | 194 | * Ethernet -- OpenCores Ethernet MAC (ethoc driver) |
195 | */ | 195 | */ |
196 | 196 | ||
197 | static struct resource ethoc_res[] __initdata = { | 197 | static struct resource ethoc_res[] = { |
198 | [0] = { /* register space */ | 198 | [0] = { /* register space */ |
199 | .start = OETH_REGS_PADDR, | 199 | .start = OETH_REGS_PADDR, |
200 | .end = OETH_REGS_PADDR + OETH_REGS_SIZE - 1, | 200 | .end = OETH_REGS_PADDR + OETH_REGS_SIZE - 1, |
@@ -212,7 +212,7 @@ static struct resource ethoc_res[] __initdata = { | |||
212 | }, | 212 | }, |
213 | }; | 213 | }; |
214 | 214 | ||
215 | static struct ethoc_platform_data ethoc_pdata __initdata = { | 215 | static struct ethoc_platform_data ethoc_pdata = { |
216 | /* | 216 | /* |
217 | * The MAC address for these boards is 00:50:c2:13:6f:xx. | 217 | * The MAC address for these boards is 00:50:c2:13:6f:xx. |
218 | * The last byte (here as zero) is read from the DIP switches on the | 218 | * The last byte (here as zero) is read from the DIP switches on the |
@@ -222,7 +222,7 @@ static struct ethoc_platform_data ethoc_pdata __initdata = { | |||
222 | .phy_id = -1, | 222 | .phy_id = -1, |
223 | }; | 223 | }; |
224 | 224 | ||
225 | static struct platform_device ethoc_device __initdata = { | 225 | static struct platform_device ethoc_device = { |
226 | .name = "ethoc", | 226 | .name = "ethoc", |
227 | .id = -1, | 227 | .id = -1, |
228 | .num_resources = ARRAY_SIZE(ethoc_res), | 228 | .num_resources = ARRAY_SIZE(ethoc_res), |
@@ -236,13 +236,13 @@ static struct platform_device ethoc_device __initdata = { | |||
236 | * UART | 236 | * UART |
237 | */ | 237 | */ |
238 | 238 | ||
239 | static struct resource serial_resource __initdata = { | 239 | static struct resource serial_resource = { |
240 | .start = DUART16552_PADDR, | 240 | .start = DUART16552_PADDR, |
241 | .end = DUART16552_PADDR + 0x1f, | 241 | .end = DUART16552_PADDR + 0x1f, |
242 | .flags = IORESOURCE_MEM, | 242 | .flags = IORESOURCE_MEM, |
243 | }; | 243 | }; |
244 | 244 | ||
245 | static struct plat_serial8250_port serial_platform_data[] __initdata = { | 245 | static struct plat_serial8250_port serial_platform_data[] = { |
246 | [0] = { | 246 | [0] = { |
247 | .mapbase = DUART16552_PADDR, | 247 | .mapbase = DUART16552_PADDR, |
248 | .irq = DUART16552_INTNUM, | 248 | .irq = DUART16552_INTNUM, |
@@ -255,7 +255,7 @@ static struct plat_serial8250_port serial_platform_data[] __initdata = { | |||
255 | { }, | 255 | { }, |
256 | }; | 256 | }; |
257 | 257 | ||
258 | static struct platform_device xtavnet_uart __initdata = { | 258 | static struct platform_device xtavnet_uart = { |
259 | .name = "serial8250", | 259 | .name = "serial8250", |
260 | .id = PLAT8250_DEV_PLATFORM, | 260 | .id = PLAT8250_DEV_PLATFORM, |
261 | .dev = { | 261 | .dev = { |