gpmc code has been converted to driver. Modify the board code to provide gpmc driver with required information. Signed-off-by: Afzal Mohammed <afzal@xxxxxx> --- arch/arm/mach-omap2/board-cm-t35.c | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/board-cm-t35.c b/arch/arm/mach-omap2/board-cm-t35.c index 909a8b9..5b0b637 100644 --- a/arch/arm/mach-omap2/board-cm-t35.c +++ b/arch/arm/mach-omap2/board-cm-t35.c @@ -66,6 +66,13 @@ #include <linux/smsc911x.h> #include <plat/gpmc-smsc911x.h> +static struct gpmc_device_pdata *gpmc_device_data[2]; +static struct gpmc_device_pdata **gpmc_cur = gpmc_device_data; + +static struct gpmc_pdata gpmc_data = { + .device_pdata = gpmc_device_data, +}; + static struct omap_smsc911x_platform_data cm_t35_smsc911x_cfg = { .id = 0, .cs = CM_T35_SMSC911X_CS, @@ -99,8 +106,17 @@ static void __init cm_t35_init_ethernet(void) regulator_register_fixed(1, sb_t35_smsc911x_supplies, ARRAY_SIZE(sb_t35_smsc911x_supplies)); - gpmc_smsc911x_init(&cm_t35_smsc911x_cfg); - gpmc_smsc911x_init(&sb_t35_smsc911x_cfg); + *gpmc_cur = gpmc_smsc911x_init(&cm_t35_smsc911x_cfg); + if (*gpmc_cur) + gpmc_data.num_device++, gpmc_cur++; + else + pr_err("error: initilaizing gpmc smsc911x instance 1\n"); + + *gpmc_cur = gpmc_smsc911x_init(&sb_t35_smsc911x_cfg); + if (*gpmc_cur) + gpmc_data.num_device++, gpmc_cur++; + else + pr_err("error: initilaizing gpmc smsc911x instance 2\n"); } #else static inline void __init cm_t35_init_ethernet(void) { return; } @@ -658,6 +674,7 @@ static void __init cm_t3x_common_init(void) cm_t35_init_i2c(); omap_ads7846_init(1, CM_T35_GPIO_PENDOWN, 0, NULL); cm_t35_init_ethernet(); + omap_init_gpmc(&gpmc_data); cm_t35_init_led(); cm_t35_init_display(); -- 1.7.10 -- 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