diff options
author | Florian Fainelli <florian@openwrt.org> | 2010-03-26 10:13:06 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2010-03-26 10:13:06 +0000 |
commit | 797967480c2ec11fb788972de03cb35f076f95eb (patch) | |
tree | 738b69e4c214d9954825fe36a2a1b6defa7dad9e /target/linux/au1000/patches-2.6.30/007-gpio_request_button.patch | |
parent | 753c39cd5f593546b5042741298d67c71eaf73a7 (diff) | |
download | mtk-20170518-797967480c2ec11fb788972de03cb35f076f95eb.zip mtk-20170518-797967480c2ec11fb788972de03cb35f076f95eb.tar.gz mtk-20170518-797967480c2ec11fb788972de03cb35f076f95eb.tar.bz2 |
drop support for 2.6.30
SVN-Revision: 20442
Diffstat (limited to 'target/linux/au1000/patches-2.6.30/007-gpio_request_button.patch')
-rw-r--r-- | target/linux/au1000/patches-2.6.30/007-gpio_request_button.patch | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/target/linux/au1000/patches-2.6.30/007-gpio_request_button.patch b/target/linux/au1000/patches-2.6.30/007-gpio_request_button.patch deleted file mode 100644 index c0c6a22..0000000 --- a/target/linux/au1000/patches-2.6.30/007-gpio_request_button.patch +++ /dev/null @@ -1,30 +0,0 @@ ---- a/arch/mips/alchemy/mtx-1/platform.c -+++ b/arch/mips/alchemy/mtx-1/platform.c -@@ -1,7 +1,7 @@ - /* - * MTX-1 platform devices registration - * -- * Copyright (C) 2007, Florian Fainelli <florian@openwrt.org> -+ * Copyright (C) 2007-2009, Florian Fainelli <florian@openwrt.org> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by -@@ -142,7 +142,17 @@ static struct __initdata platform_device - - static int __init mtx1_register_devices(void) - { -- gpio_direction_input(207); -+ int rc; -+ -+ rc = gpio_request(mtx1_gpio_button[0].gpio, -+ mtx1_gpio_button[0].desc); -+ if (rc < 0) { -+ printk(KERN_INFO "mtx1: failed to request %d\n", -+ mtx1_gpio_button[0].gpio); -+ goto out; -+ } -+ gpio_direction_input(mtx1_gpio_button[0].gpio); -+out: - return platform_add_devices(mtx1_devs, ARRAY_SIZE(mtx1_devs)); - } - |