aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/atheros/patches-3.18/102-ar5312_gpio.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-03-13 02:59:04 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-03-13 02:59:04 +0000
commit2f1ff48ea3dd36424aee989f53104d98a553954b (patch)
tree2d43d512c5c8c241b64dbb62068830887f0a609d /target/linux/atheros/patches-3.18/102-ar5312_gpio.patch
parent8a98d187d5660c9fc397e9966435a5835eb0d54c (diff)
downloadupstream-2f1ff48ea3dd36424aee989f53104d98a553954b.tar.gz
upstream-2f1ff48ea3dd36424aee989f53104d98a553954b.tar.bz2
upstream-2f1ff48ea3dd36424aee989f53104d98a553954b.zip
atheros: v3.18: change calls logic
Check SoC family (AR5312+ or AR2315+) before call instead of checking it inside the called function. Also convert ar{5312,2315}_init_device() function to void, since they both return zero and nobody care about return value. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44713
Diffstat (limited to 'target/linux/atheros/patches-3.18/102-ar5312_gpio.patch')
-rw-r--r--target/linux/atheros/patches-3.18/102-ar5312_gpio.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/atheros/patches-3.18/102-ar5312_gpio.patch b/target/linux/atheros/patches-3.18/102-ar5312_gpio.patch
index 9c2ff89f65..47da6de70f 100644
--- a/target/linux/atheros/patches-3.18/102-ar5312_gpio.patch
+++ b/target/linux/atheros/patches-3.18/102-ar5312_gpio.patch
@@ -10,7 +10,7 @@
config SOC_AR2315
--- a/arch/mips/ath25/ar5312.c
+++ b/arch/mips/ath25/ar5312.c
-@@ -187,6 +187,22 @@ static struct platform_device ar5312_phy
+@@ -184,6 +184,22 @@ static struct platform_device ar5312_phy
.num_resources = 1,
};
@@ -33,7 +33,7 @@
#ifdef CONFIG_LEDS_GPIO
static struct gpio_led ar5312_leds[] = {
{ .name = "wlan", .gpio = 0, .active_low = 1, },
-@@ -277,6 +293,8 @@ int __init ar5312_init_devices(void)
+@@ -271,6 +287,8 @@ void __init ar5312_init_devices(void)
platform_device_register(&ar5312_physmap_flash);