X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=drivers%2Fleds%2Fleds-da903x.c;h=2a4b87f8091ab699706577e1442efe68de645049;hb=7f63037c8fb204f666367c6469f5a9b9d6888877;hp=c263a21db8298d057ca1cf5b9b28196d0af8e864;hpb=121027a7a64a12e9e5c0289f12473ff11678a812;p=karo-tx-linux.git diff --git a/drivers/leds/leds-da903x.c b/drivers/leds/leds-da903x.c index c263a21db829..2a4b87f8091a 100644 --- a/drivers/leds/leds-da903x.c +++ b/drivers/leds/leds-da903x.c @@ -93,7 +93,7 @@ static void da903x_led_set(struct led_classdev *led_cdev, static int da903x_led_probe(struct platform_device *pdev) { - struct led_info *pdata = pdev->dev.platform_data; + struct led_info *pdata = dev_get_platdata(&pdev->dev); struct da903x_led *led; int id, ret;