From: Jingoo Han Date: Tue, 17 Sep 2013 05:09:37 +0000 (+0900) Subject: video: mbxfb: use dev_get_platdata() X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=3b2633fb1b8da59f0a160da7110a666b3e44b500;p=deliverable%2Flinux.git video: mbxfb: use dev_get_platdata() 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 Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/mbx/mbxfb.c b/drivers/video/mbx/mbxfb.c index 0c1a874ffd2b..f87c4ef10b78 100644 --- a/drivers/video/mbx/mbxfb.c +++ b/drivers/video/mbx/mbxfb.c @@ -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;