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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Charulatha V <charu@xxxxxx> [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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux