]> Pileus Git - ~andy/linux/commitdiff
spi/documentation: Fix usage of __initdata
authorSachin Kamat <sachin.kamat@linaro.org>
Thu, 8 Aug 2013 05:15:10 +0000 (10:45 +0530)
committerMark Brown <broonie@linaro.org>
Thu, 8 Aug 2013 10:43:44 +0000 (11:43 +0100)
__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>
Documentation/spi/spi-summary

index 2331eb2141466f9c5038cfa8c6f4157c570ff96a..f21edb9834137ac91a9d1e6789c612ef07deb8c1 100644 (file)
@@ -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)
        {