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

Tony Lindgren
2010-04-01T09:29:18Z

* 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.

Tony