[PATCH 5/9] ARM: OMAP2+: gpmc-smc91x: Adapt to use gpmc driver
Tony Lindgren
tony at atomide.com
Wed Jun 13 08:29:50 EDT 2012
* Afzal Mohammed <afzal at ti.com> [120611 08:19]:
> --- a/arch/arm/mach-omap2/gpmc-smc91x.c
> +++ b/arch/arm/mach-omap2/gpmc-smc91x.c
> @@ -114,7 +136,13 @@ static int smc91c96_gpmc_retime(void)
> if (gpmc_cfg->flags & GPMC_MUX_ADD_DATA)
> return 0;
>
> - return gpmc_cs_set_timings(gpmc_cfg->cs, &t);
> + /* gpmc driver interface */
> + if (gpmc_smc91x_cs_data.mem_size == 0x10) {
> + gpmc_smc91x_cs_data.time_ctrl.type = has_period;
> + gpmc_smc91x_cs_data.time_ctrl.timings = t;
> + return 0;
> + } else
> + return gpmc_cs_set_timings(gpmc_cfg->cs, &t);
> }
>
> /*
Here too we just need to care about the mainline kernel users
and convert them to use the new interface. No need to keep
gpmc_cs_set_timings around. The same applies for other similar
patches.
Regards,
Tony
More information about the linux-arm-kernel
mailing list