From e3d58387a394041d3fd48077b68718297e75468a Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Wed, 28 Jan 2009 11:48:14 +0000 Subject: [PATCH] fix leds-gpio platform data initialization (closes #4512) SVN-Revision: 14238 --- target/linux/ar71xx/files/arch/mips/ar71xx/platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c b/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c index a01aecbd99c..d8ed28a431a 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) -- 2.30.2