video: s3c-fb: use dev_get_platdata()
authorJingoo Han <jg1.han@samsung.com>
Tue, 17 Sep 2013 05:10:37 +0000 (14:10 +0900)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 20 Sep 2013 09:23:21 +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/s3c-fb.c

index 2e7991c7ca088dca9688dd7a8ec13d715c25435f..62acae2694a9968ccbcd3f2773f3be468580a2c6 100644 (file)
@@ -1378,7 +1378,7 @@ static int s3c_fb_probe(struct platform_device *pdev)
                return -EINVAL;
        }
 
-       pd = pdev->dev.platform_data;
+       pd = dev_get_platdata(&pdev->dev);
        if (!pd) {
                dev_err(dev, "no platform data specified\n");
                return -EINVAL;