Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f5e39a1 authored by Sachin Kamat's avatar Sachin Kamat Committed by Jiri Kosina
Browse files

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>
Acked-by: default avatarRob Landley <rob@landley.net>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent c96bd350
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)
	{