Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

serial: bfin_uart: Fix incorrect placement of __initdata

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

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Sachin Kamat and committed by
Greg Kroah-Hartman
6734a834 20246fdf

+3 -3
+3 -3
drivers/tty/serial/bfin_uart.c
··· 1176 1176 * don't let the common infrastructure play with things. (see calls to setup 1177 1177 * & earlysetup in ./kernel/printk.c:register_console() 1178 1178 */ 1179 - static struct __initdata console bfin_early_serial_console = { 1179 + static struct console bfin_early_serial_console __initdata = { 1180 1180 .name = "early_BFuart", 1181 1181 .write = bfin_earlyprintk_console_write, 1182 1182 .device = uart_console_device, ··· 1398 1398 }; 1399 1399 1400 1400 #if defined(CONFIG_SERIAL_BFIN_CONSOLE) 1401 - static __initdata struct early_platform_driver early_bfin_serial_driver = { 1401 + static struct early_platform_driver early_bfin_serial_driver __initdata = { 1402 1402 .class_str = CLASS_BFIN_CONSOLE, 1403 1403 .pdrv = &bfin_serial_driver, 1404 1404 .requested_id = EARLY_PLATFORM_ID_UNSET, ··· 1477 1477 }, 1478 1478 }; 1479 1479 1480 - static __initdata struct early_platform_driver early_bfin_earlyprintk_driver = { 1480 + static struct early_platform_driver early_bfin_earlyprintk_driver __initdata = { 1481 1481 .class_str = CLASS_BFIN_EARLYPRINTK, 1482 1482 .pdrv = &bfin_earlyprintk_driver, 1483 1483 .requested_id = EARLY_PLATFORM_ID_UNSET,