Skip to content
Snippets Groups Projects
Commit 42fa278d authored by Sachin Kamat's avatar Sachin Kamat Committed by Wolfram Sang
Browse files

Documentation: i2c: Fix example in instantiating-devices


__initdata should be placed between the variable name and equal
sign for the variable to be placed in the intended section.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 243ec090
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ i2c_board_info which is registered by calling i2c_register_board_info().
Example (from omap2 h4):
static struct i2c_board_info __initdata h4_i2c_board_info[] = {
static struct i2c_board_info h4_i2c_board_info[] __initdata = {
{
I2C_BOARD_INFO("isp1301_omap", 0x2d),
.irq = OMAP_GPIO_IRQ(125),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment