summaryrefslogtreecommitdiffstats
path: root/drivers/video/backlight/platform_lcd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/backlight/platform_lcd.c')
-rw-r--r--drivers/video/backlight/platform_lcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/backlight/platform_lcd.c b/drivers/video/backlight/platform_lcd.c
index 05683670670..cc0f0675366 100644
--- a/drivers/video/backlight/platform_lcd.c
+++ b/drivers/video/backlight/platform_lcd.c
@@ -80,7 +80,7 @@ static int platform_lcd_probe(struct platform_device *pdev)
struct device *dev = &pdev->dev;
int err;
- pdata = pdev->dev.platform_data;
+ pdata = dev_get_platdata(&pdev->dev);
if (!pdata) {
dev_err(dev, "no platform data supplied\n");
return -EINVAL;