Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 226467
b: refs/heads/master
c: 5403187
h: refs/heads/master
i:
  226465: 936dd6f
  226463: 5a12dd0
v: v3
  • Loading branch information
Aaro Koskinen authored and Tony Lindgren committed Dec 3, 2010
1 parent 7db5d71 commit f9bf7d6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 20 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a1a92e6fccadbba1846a081f21d0c12a10addd56
refs/heads/master: 5403187f83c12c6f4c03547e0cc05bac0310be7b
28 changes: 9 additions & 19 deletions trunk/arch/arm/mach-omap2/board-rx51-peripherals.c
Original file line number Diff line number Diff line change
Expand Up @@ -817,25 +817,15 @@ static struct mtd_partition onenand_partitions[] = {
},
};

static struct omap_onenand_platform_data board_onenand_data = {
.cs = 0,
.gpio_irq = 65,
.parts = onenand_partitions,
.nr_parts = ARRAY_SIZE(onenand_partitions),
.flags = ONENAND_SYNC_READWRITE,
static struct omap_onenand_platform_data board_onenand_data[] = {
{
.cs = 0,
.gpio_irq = 65,
.parts = onenand_partitions,
.nr_parts = ARRAY_SIZE(onenand_partitions),
.flags = ONENAND_SYNC_READWRITE,
}
};

static void __init board_onenand_init(void)
{
gpmc_onenand_init(&board_onenand_data);
}

#else

static inline void board_onenand_init(void)
{
}

#endif

#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
Expand Down Expand Up @@ -918,7 +908,7 @@ static void __init rx51_init_wl1251(void)
void __init rx51_peripherals_init(void)
{
rx51_i2c_init();
board_onenand_init();
gpmc_onenand_init(board_onenand_data);
board_smc91x_init();
rx51_add_gpio_keys();
rx51_init_wl1251();
Expand Down

0 comments on commit f9bf7d6

Please sign in to comment.