* Charulatha V <[email protected]> [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
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to