diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-17 14:10:37 +0900 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-09-20 12:23:21 +0300 |
commit | 8b4c7e5da29b48381d3855a7b5cd656a58c6154c (patch) | |
tree | df2a9eba1e0b2462f5a371fb6308ab7ab4796d38 | |
parent | 772ee6daf19554e72a2ac268b36a9abc9e3bff0f (diff) |
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>
-rw-r--r-- | drivers/video/s3c-fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c index 2e7991c7ca0..62acae2694a 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; |