summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-01-28 11:48:14 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-01-28 11:48:14 +0000
commite3d58387a394041d3fd48077b68718297e75468a (patch)
treebcbeb8693123dab3b2ca45ad3f6a7424aef4f6c4 /target/linux/ar71xx
parenta7187cb4ff5b1e998e8ef6472976016825a1cd91 (diff)
downloadmtk-20170518-e3d58387a394041d3fd48077b68718297e75468a.zip
mtk-20170518-e3d58387a394041d3fd48077b68718297e75468a.tar.gz
mtk-20170518-e3d58387a394041d3fd48077b68718297e75468a.tar.bz2
fix leds-gpio platform data initialization (closes #4512)
SVN-Revision: 14238
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c b/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c
index a01aecb..d8ed28a 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c
@@ -515,7 +515,7 @@ void __init ar71xx_add_device_leds_gpio(int id, unsigned num_leds,
memset(&pdata, 0, sizeof(pdata));
pdata.num_leds = num_leds;
- pdata.leds = leds;
+ pdata.leds = p;
err = platform_device_add_data(pdev, &pdata, sizeof(pdata));
if (err)