提交 5f5e39a1 编写于 作者: S Sachin Kamat 提交者: Jiri Kosina

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: NSachin Kamat <sachin.kamat@linaro.org>
Acked-by: NRob Landley <rob@landley.net>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 c96bd350
......@@ -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
* 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)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册