四、【GPIO驱动框架》设备device】
arch/arm/mach-omap2/gpio.c中
1、static int __init omap2_gpio_init(void)
{
returnomap_hwmod_for_each_by_class("gpio", omap2_gpio_dev_init,
NULL);
}
archarm/mach-omap2/omap_hwmod.c 中
2、int omap_hwmod_for_each_by_class(constchar *classname,