提交 dc8c214a 编写于 作者: R roel kluin 提交者: Linus Torvalds

spi documentation: use __initdata on struct

Use __initdata for data, not __init.
Signed-off-by: NRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 dc924efb
...@@ -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 __init pdata = { ... }; static struct mysoc_spi_data __initdata pdata = { ... };
static __init board_init(void) static __init board_init(void)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册