Skip to content

Commit

Permalink
spi/documentation: Fix usage of __initdata
Browse files Browse the repository at this point in the history
__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>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Sachin Kamat authored and broonie committed Aug 8, 2013
1 parent c095ba7 commit 61679ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/spi/spi-summary
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 61679ef

Please sign in to comment.