aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/mbx
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-17 01:09:37 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-09-20 05:22:03 -0400
commit3b2633fb1b8da59f0a160da7110a666b3e44b500 (patch)
tree9c79bf523c4c131b6e4f4668cc36cacd7cb224d5 /drivers/video/mbx
parent1c8034c7f0a3b53bb27b0faa9a6e3f88da0322ea (diff)
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 <jg1.han@samsung.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/mbx')
-rw-r--r--drivers/video/mbx/mbxfb.c2
1 files changed, 1 insertions, 1 deletions
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)
890 890
891 dev_dbg(&dev->dev, "mbxfb_probe\n"); 891 dev_dbg(&dev->dev, "mbxfb_probe\n");
892 892
893 pdata = dev->dev.platform_data; 893 pdata = dev_get_platdata(&dev->dev);
894 if (!pdata) { 894 if (!pdata) {
895 dev_err(&dev->dev, "platform data is required\n"); 895 dev_err(&dev->dev, "platform data is required\n");
896 return -EINVAL; 896 return -EINVAL;