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