diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-17 01:10:37 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-09-20 05:23:21 -0400 |
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 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) | |||
1378 | return -EINVAL; | 1378 | return -EINVAL; |
1379 | } | 1379 | } |
1380 | 1380 | ||
1381 | pd = pdev->dev.platform_data; | 1381 | pd = dev_get_platdata(&pdev->dev); |
1382 | if (!pd) { | 1382 | if (!pd) { |
1383 | dev_err(dev, "no platform data specified\n"); | 1383 | dev_err(dev, "no platform data specified\n"); |
1384 | return -EINVAL; | 1384 | return -EINVAL; |