From d436039231990ffd144b0c65d663c4c4b97ca4ac Mon Sep 17 00:00:00 2001 From: Jonas Gorski Date: Sun, 30 Aug 2015 12:17:52 +0000 Subject: brcm63xx: remove legacy led/button related patches We register all gpio buttons and leds through DT, so no need to keep fixes/additions for the platform data based bay. Signed-off-by: Jonas Gorski git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46753 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- ...S-BCM63XX-register-lookup-for-ephy-reset-gpio.patch | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'target/linux/brcm63xx/patches-4.1/377-MIPS-BCM63XX-register-lookup-for-ephy-reset-gpio.patch') diff --git a/target/linux/brcm63xx/patches-4.1/377-MIPS-BCM63XX-register-lookup-for-ephy-reset-gpio.patch b/target/linux/brcm63xx/patches-4.1/377-MIPS-BCM63XX-register-lookup-for-ephy-reset-gpio.patch index 30f6ba5098..0cbb4f52ab 100644 --- a/target/linux/brcm63xx/patches-4.1/377-MIPS-BCM63XX-register-lookup-for-ephy-reset-gpio.patch +++ b/target/linux/brcm63xx/patches-4.1/377-MIPS-BCM63XX-register-lookup-for-ephy-reset-gpio.patch @@ -15,7 +15,7 @@ Signed-off-by: Jonas Gorski --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c -@@ -59,7 +59,7 @@ static struct board_info __initdata boar +@@ -54,7 +54,7 @@ static struct board_info __initdata boar }, .ephy_reset_gpio = 36, @@ -26,9 +26,9 @@ Signed-off-by: Jonas Gorski --- a/arch/mips/bcm63xx/boards/board_common.c +++ b/arch/mips/bcm63xx/boards/board_common.c -@@ -278,9 +278,10 @@ int __init board_register_devices(void) - platform_device_register(&bcm63xx_gpio_leds); - } +@@ -257,9 +257,10 @@ int __init board_register_devices(void) + + platform_device_register(&bcm63xx_gpio_leds); - if (board.ephy_reset_gpio && board.ephy_reset_gpio_flags) - gpio_request_one(board.ephy_reset_gpio, @@ -38,8 +38,8 @@ Signed-off-by: Jonas Gorski + board.ephy_reset_gpio_flags); + } - /* count number of BUTTONs defined by this device */ - while (button_count < ARRAY_SIZE(board.buttons) && board.buttons[button_count].desc) + return 0; + } --- a/arch/mips/bcm63xx/gpio.c +++ b/arch/mips/bcm63xx/gpio.c @@ -8,15 +8,24 @@ @@ -117,15 +117,15 @@ Signed-off-by: Jonas Gorski { --- a/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h +++ b/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h -@@ -4,6 +4,7 @@ +@@ -3,6 +3,7 @@ + #include #include - #include +#include #include #include #include -@@ -58,8 +59,8 @@ struct board_info { +@@ -54,8 +55,8 @@ struct board_info { /* External PHY reset GPIO */ unsigned int ephy_reset_gpio; -- cgit v1.2.3