From mboxrd@z Thu Jan 1 00:00:00 1970 From: tony@atomide.com (Tony Lindgren) Date: Wed, 13 Jun 2012 05:29:50 -0700 Subject: [PATCH 5/9] ARM: OMAP2+: gpmc-smc91x: Adapt to use gpmc driver In-Reply-To: <0bdbc293fc98613011d37ec59559ba6d475eadf2.1339419379.git.afzal@ti.com> References: <0bdbc293fc98613011d37ec59559ba6d475eadf2.1339419379.git.afzal@ti.com> Message-ID: <20120613122950.GR12766@atomide.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org * Afzal Mohammed [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