ar71xx: move irq_to_gpio and gpio_to_irq into gpio.c