From: Jingoo Han Date: Tue, 17 Sep 2013 05:10:37 +0000 (+0900) Subject: video: s3c-fb: use dev_get_platdata() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8b4c7e5da29b48381d3855a7b5cd656a58c6154c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Tomi Valkeinen --- 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;