summaryrefslogtreecommitdiffstats
path: root/drivers/video/s3c-fb.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-17 14:10:37 +0900
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-09-20 12:23:21 +0300
commit8b4c7e5da29b48381d3855a7b5cd656a58c6154c (patch)
treedf2a9eba1e0b2462f5a371fb6308ab7ab4796d38 /drivers/video/s3c-fb.c
parent772ee6daf19554e72a2ac268b36a9abc9e3bff0f (diff)
downloadlinux-8b4c7e5da29b48381d3855a7b5cd656a58c6154c.tar.bz2
video: s3c-fb: 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/s3c-fb.c')
-rw-r--r--drivers/video/s3c-fb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c
index 2e7991c7ca08..62acae2694a9 100644
--- a/drivers/video/s3c-fb.c
+++ b/drivers/video/s3c-fb.c
@@ -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;