Commit dffb3b47 authored by Jingoo Han's avatar Jingoo Han Committed by Tomi Valkeinen

video: omapfb: 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: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent cd7c7f6c
...@@ -947,7 +947,7 @@ static int hwa742_init(struct omapfb_device *fbdev, int ext_mode, ...@@ -947,7 +947,7 @@ static int hwa742_init(struct omapfb_device *fbdev, int ext_mode,
hwa742.extif = fbdev->ext_if; hwa742.extif = fbdev->ext_if;
hwa742.int_ctrl = fbdev->int_ctrl; hwa742.int_ctrl = fbdev->int_ctrl;
omapfb_conf = fbdev->dev->platform_data; omapfb_conf = dev_get_platdata(fbdev->dev);
hwa742.sys_ck = clk_get(NULL, "hwa_sys_ck"); hwa742.sys_ck = clk_get(NULL, "hwa_sys_ck");
......
...@@ -1602,7 +1602,7 @@ static int omapfb_find_ctrl(struct omapfb_device *fbdev) ...@@ -1602,7 +1602,7 @@ static int omapfb_find_ctrl(struct omapfb_device *fbdev)
char name[17]; char name[17];
int i; int i;
conf = fbdev->dev->platform_data; conf = dev_get_platdata(fbdev->dev);
fbdev->ctrl = NULL; fbdev->ctrl = NULL;
...@@ -1674,7 +1674,7 @@ static int omapfb_do_probe(struct platform_device *pdev, ...@@ -1674,7 +1674,7 @@ static int omapfb_do_probe(struct platform_device *pdev,
goto cleanup; goto cleanup;
} }
if (pdev->dev.platform_data == NULL) { if (dev_get_platdata(&pdev->dev) == NULL) {
dev_err(&pdev->dev, "missing platform data\n"); dev_err(&pdev->dev, "missing platform data\n");
r = -ENOENT; r = -ENOENT;
goto cleanup; goto cleanup;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment