video: w100fb: use dev_get_platdata()
authorJingoo Han <jg1.han@samsung.com>
Tue, 17 Sep 2013 05:11:55 +0000 (14:11 +0900)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 20 Sep 2013 09:23:22 +0000 (12:23 +0300)
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/w100fb.c

index 7a299e951f75421a7a4112eae5af284cc977a6ca..2a0437a6d838d22153d5437334dc7171895560a5 100644 (file)
@@ -680,7 +680,7 @@ int w100fb_probe(struct platform_device *pdev)
        par = info->par;
        platform_set_drvdata(pdev, info);
 
-       inf = pdev->dev.platform_data;
+       inf = dev_get_platdata(&pdev->dev);
        par->chip_id = chip_id;
        par->mach = inf;
        par->fastpll_mode = 0;