Skip to contentSkip to conversation

spi documentation: __initdata on struct

PATCH New roel kluin 1 participant 1 message Oct 15, 2008 SPI

lore
Share & tools
lore

roel kluin

author
#0 lore raw

PATCH 1/1 spi documentation: __initdata on struct

use __initdata for data, not __init

---

Documentation/spi/spi-summary +1 -1
index 8bae2f0..0f5122e 100644
@@ -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 __init pdata = { ... };
+	static struct mysoc_spi_data __initdata pdata = { ... };
 
 	static __init board_init(void)
 	{

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/