Skip to contentSkip to conversation

MIPS: Alchemy: MTX-1: fix incorrect placement of __initdata tag

PATCH In review Bartlomiej Zolnierkiewicz 2 participants 2 messages Sep 30, 2013 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: Alchemy: MTX-1: fix incorrect placement of __initdata tag

__initdata tag should be placed between the variable name and equal sign for the variable to be placed in the intended .init.data section.

---
 arch/mips/alchemy/board-mtx1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/alchemy/board-mtx1.c +1 -1
index 4a9baa9..9969dba 100644
@@ -276,7 +276,7 @@ static struct platform_device mtx1_pci_host = {
 	.resource	= alchemy_pci_host_res,
 };
 
-static struct __initdata platform_device * mtx1_devs[] = {
+static struct platform_device *mtx1_devs[] __initdata = {
 	&mtx1_pci_host,
 	&mtx1_gpio_leds,
 	&mtx1_wdt,
Signature · 1 line
1.8.2.3
#1 lore raw
Quoted 2 lines · Bartlomiej Zolnierkiewicz

__initdata tag should be placed between the variable name and equal sign for the variable to be placed in the intended .init.data section.

Thanks Bart, applied.

Ralf