This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

请教AM3874下中断配置如何编写

我想请问如下的中断配置代码,是正确写法吗?

#define GPIO_UART6          2

omap_mux_init_signal("mmc0_cmd.gpio0_2", TI814X_PULL_DIS | (1 << 18));

error = gpio_request(GPIO_UART6, "uart6_irq");
if (error < 0) {
printk(KERN_ERR "%s: failed to request GPIO for UART6 IRQ"
": %d\n", __func__, error);
}
gpio_direction_input(GPIO_UART6);
gpio_export(2, true);