omap_set_gpio_edge_ctrl(12, OMAP_GPIO_FALLING_EDGE); omap_set_gpio_edge_ctrl(13, OMAP_GPIO_FALLING_EDGE); omap_set_gpio_edge_ctrl(14, OMAP_GPIO_FALLING_EDGE); omap_set_gpio_edge_ctrl(15, OMAP_GPIO_FALLING_EDGE); 
set_irq_type(OMAP_GPIO_IRQ(12), IRQT_FALLING); set_irq_type(OMAP_GPIO_IRQ(13), IRQT_FALLING); set_irq_type(OMAP_GPIO_IRQ(14), IRQT_FALLING); set_irq_type(OMAP_GPIO_IRQ(15), IRQT_FALLING); 
static void __init netstar_init(void){	/* green LED */	omap_request_gpio(4);	omap_set_gpio_direction(4, 0);	/* smc91x reset */	omap_request_gpio(7);	omap_set_gpio_direction(7, 0);	omap_set_gpio_dataout(7, 1);	udelay(2);	/* wait at least 100ns */	omap_set_gpio_dataout(7, 0);	mdelay(50);	/* 50ms until PHY ready */	/* smc91x interrupt pin */	omap_request_gpio(8);	omap_set_gpio_edge_ctrl(8, OMAP_GPIO_RISING_EDGE);	omap_request_gpio(12);	omap_request_gpio(13);	omap_request_gpio(14);	omap_request_gpio(15);	omap_set_gpio_edge_ctrl(12, OMAP_GPIO_FALLING_EDGE);	omap_set_gpio_edge_ctrl(13, OMAP_GPIO_FALLING_EDGE);	omap_set_gpio_edge_ctrl(14, OMAP_GPIO_FALLING_EDGE);	omap_set_gpio_edge_ctrl(15, OMAP_GPIO_FALLING_EDGE);	platform_add_devices(netstar_devices, ARRAY_SIZE(netstar_devices));	/* Switch on green LED */	omap_set_gpio_dataout(4, 0);	/* Switch off red LED */	omap_writeb(0x00, OMAP_LPG1_PMR);	/* Disable clock */	omap_writeb(0x80, OMAP_LPG1_LCR);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/7c38cf021b42a4297bc8f860ab627734bdd6c8d1/board-netstar.c/buggy/arch/arm/mach-omap1/board-netstar.c