1 --- a/arch/mips/alchemy/mtx-1/platform.c
2 +++ b/arch/mips/alchemy/mtx-1/platform.c
5 * MTX-1 platform devices registration
7 - * Copyright (C) 2007, Florian Fainelli <florian@openwrt.org>
8 + * Copyright (C) 2007-2009, Florian Fainelli <florian@openwrt.org>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 @@ -142,7 +142,17 @@ static struct __initdata platform_device
14 static int __init mtx1_register_devices(void)
16 - gpio_direction_input(207);
19 + rc = gpio_request(mtx1_gpio_button[0].gpio,
20 + mtx1_gpio_button[0].desc);
22 + printk(KERN_INFO "mtx1: failed to request %d\n",
23 + mtx1_gpio_button[0].gpio);
26 + gpio_direction_input(mtx1_gpio_button[0].gpio);
28 return platform_add_devices(mtx1_devs, ARRAY_SIZE(mtx1_devs));