Skip to content

Commit 5f5e39a

Browse files
Sachin KamatJiri Kosina
authored andcommitted
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: Sachin Kamat <sachin.kamat@linaro.org> Acked-by: Rob Landley <rob@landley.net> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent c96bd35 commit 5f5e39a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Documentation/spi/spi-summary‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ So for example arch/.../mach-*/board-*.c files might have code like:
215215
/* if your mach-* infrastructure doesn't support kernels that can
216216
* run on multiple boards, pdata wouldn't benefit from "__init".
217217
*/
218-
static struct mysoc_spi_data __initdata pdata = { ... };
218+
static struct mysoc_spi_data pdata __initdata = { ... };
219219

220220
static __init board_init(void)
221221
{

0 commit comments

Comments
 (0)