Commit 61679efe authored by Sachin Kamat's avatar Sachin Kamat Committed by Mark Brown

spi/documentation: Fix usage of __initdata

__initdata should be placed between the variable name and equal
sign for the variable to be placed in the intended section. Fix
the example code.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent c095ba72
...@@ -215,7 +215,7 @@ So for example arch/.../mach-*/board-*.c files might have code like: ...@@ -215,7 +215,7 @@ So for example arch/.../mach-*/board-*.c files might have code like:
/* if your mach-* infrastructure doesn't support kernels that can /* if your mach-* infrastructure doesn't support kernels that can
* run on multiple boards, pdata wouldn't benefit from "__init". * run on multiple boards, pdata wouldn't benefit from "__init".
*/ */
static struct mysoc_spi_data __initdata pdata = { ... }; static struct mysoc_spi_data pdata __initdata = { ... };
static __init board_init(void) static __init board_init(void)
{ {
......
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