RE: [PATCH 2/8] OMAP3:GPIO:Add support for early platform gpio device

Varadarajan, Charulatha
2010-04-01T10:50:22Z

> -----Original Message-----
> From: Tony Lindgren [mailto:tony@atomide.com]
> Sent: Thursday, April 01, 2010 3:01 PM
> To: Varadarajan, Charulatha
> Cc: linux-omap@vger.kernel.org; Nayak, Rajendra; paul@pwsan.com
> Subject: Re: [PATCH 2/8] OMAP3:GPIO:Add support for early platform gpio device
>
> * Charulatha V <charu@ti.com> [100331 05:15]:
> > +
> > +int __init omap3_early_init_gpio(struct platform_device ***pdev)
> > +{
> > + *pdev = omap3_gpio_early_dev;
> > + return OMAP34XX_NR_GPIOS;
> > +}
>
> ...
>
> > +int __init omap3_gpio_dev_reg(void)
> > +{
> > + if (cpu_is_omap34xx()) {
> > + platform_device_register(&omap3_gpio1);
> > + platform_device_register(&omap3_gpio2);
> > + platform_device_register(&omap3_gpio3);
> > + platform_device_register(&omap3_gpio4);
> > + platform_device_register(&omap3_gpio5);
> > + platform_device_register(&omap3_gpio6);
> > + }
> > + return 0;
> > +}
> > +arch_initcall(omap3_gpio_dev_reg);
>
> Just call omap_gpio_init for each platform data.

I miss something here. Please provide more info.

>
> Tony