fix leds-gpio platform data initialization (closes #4512)
authorGabor Juhos <juhosg@openwrt.org>
Wed, 28 Jan 2009 11:48:14 +0000 (11:48 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Wed, 28 Jan 2009 11:48:14 +0000 (11:48 +0000)
SVN-Revision: 14238

target/linux/ar71xx/files/arch/mips/ar71xx/platform.c

index a01aecbd99ce2b562569ea6dc55ff555e776cf8b..d8ed28a431ad6df68148d3a6419b35d834bef9e4 100644 (file)
@@ -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)