On Thu, Dec 09, 2010 at 07:11:28PM +0200, Aaro Koskinen wrote: > Hi, > > On Thu, 9 Dec 2010, Jamie Iles wrote: > >>+static void __init rm680_peripherals_init(void) > >>+{ > >>+ platform_add_devices(rm680_peripherals_devices, > >>+ ARRAY_SIZE(rm680_peripherals_devices)); > >>+ rm680_i2c_init(); > >>+ gpmc_onenand_init(board_onenand_data); > >What happens if CONFIG_MTD_ONENAND_OMAP2=n and > >CONFIG_MTD_ONENAND_OMAP2_MODULE=n? Do you need to define board_onenand_data to > >NULL if these aren't enabled? > [...] > >>+static void __init rm680_init(void) > >>+{ > >>+ omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); > >The same here as with the onenand data. > > Check the following commits in linux-omap tree: > > http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=commit;h=5403187f83c12c6f4c03547e0cc05bac0310be7b > > and > > http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=commit;h=7203f8a48bb63015ebe58a6f2a38aec1cb208b9d Thanks for the pointer! It looks a bit confusing to my eyes but I guess it's better than lots of ifdeffery. Jamie -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html