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

index 0c1a874ffd2bfd100be9e8f0b77bd6c0a30e90de..f87c4ef10b78717536f4cf0506f3029b871dab57 100644 (file)
@@ -890,7 +890,7 @@ static int mbxfb_probe(struct platform_device *dev)
 
        dev_dbg(&dev->dev, "mbxfb_probe\n");
 
-       pdata = dev->dev.platform_data;
+       pdata = dev_get_platdata(&dev->dev);
        if (!pdata) {
                dev_err(&dev->dev, "platform data is required\n");
                return -EINVAL;