Commit 5403187f authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Tony Lindgren
Browse files

arm: mach-omap2: rx51: clean up dummy onenand init



When OneNAND support is disabled, the platform code defines NULL
board_onenand_data and empty init function for us. By utilizing this we
can avoid cluttering board files with dummy definitions/wrappers.
Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent a1a92e6f
...@@ -817,25 +817,15 @@ static struct mtd_partition onenand_partitions[] = { ...@@ -817,25 +817,15 @@ static struct mtd_partition onenand_partitions[] = {
}, },
}; };
static struct omap_onenand_platform_data board_onenand_data = { static struct omap_onenand_platform_data board_onenand_data[] = {
.cs = 0, {
.gpio_irq = 65, .cs = 0,
.parts = onenand_partitions, .gpio_irq = 65,
.nr_parts = ARRAY_SIZE(onenand_partitions), .parts = onenand_partitions,
.flags = ONENAND_SYNC_READWRITE, .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 #endif
#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
...@@ -918,7 +908,7 @@ error: ...@@ -918,7 +908,7 @@ error:
void __init rx51_peripherals_init(void) void __init rx51_peripherals_init(void)
{ {
rx51_i2c_init(); rx51_i2c_init();
board_onenand_init(); gpmc_onenand_init(board_onenand_data);
board_smc91x_init(); board_smc91x_init();
rx51_add_gpio_keys(); rx51_add_gpio_keys();
rx51_init_wl1251(); rx51_init_wl1251();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment