aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-17 00:58:58 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-09-20 05:22:01 -0400
commitdffb3b47baf472c538c85c22fdce78cbed786536 (patch)
treee4b19eafe8410ab154f0835c6667278358e1f76a /drivers/video/omap
parentcd7c7f6c3c6d0800e1096aa6d1bf36271c48f8ff (diff)
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: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap')
-rw-r--r--drivers/video/omap/hwa742.c2
-rw-r--r--drivers/video/omap/omapfb_main.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/omap/hwa742.c b/drivers/video/omap/hwa742.c
index f349ee6f0cea..a4ee65b8f918 100644
--- a/drivers/video/omap/hwa742.c
+++ b/drivers/video/omap/hwa742.c
@@ -947,7 +947,7 @@ static int hwa742_init(struct omapfb_device *fbdev, int ext_mode,
947 hwa742.extif = fbdev->ext_if; 947 hwa742.extif = fbdev->ext_if;
948 hwa742.int_ctrl = fbdev->int_ctrl; 948 hwa742.int_ctrl = fbdev->int_ctrl;
949 949
950 omapfb_conf = fbdev->dev->platform_data; 950 omapfb_conf = dev_get_platdata(fbdev->dev);
951 951
952 hwa742.sys_ck = clk_get(NULL, "hwa_sys_ck"); 952 hwa742.sys_ck = clk_get(NULL, "hwa_sys_ck");
953 953
diff --git a/drivers/video/omap/omapfb_main.c b/drivers/video/omap/omapfb_main.c
index d40612c31a98..e4fc6d9b5371 100644
--- a/drivers/video/omap/omapfb_main.c
+++ b/drivers/video/omap/omapfb_main.c
@@ -1602,7 +1602,7 @@ static int omapfb_find_ctrl(struct omapfb_device *fbdev)
1602 char name[17]; 1602 char name[17];
1603 int i; 1603 int i;
1604 1604
1605 conf = fbdev->dev->platform_data; 1605 conf = dev_get_platdata(fbdev->dev);
1606 1606
1607 fbdev->ctrl = NULL; 1607 fbdev->ctrl = NULL;
1608 1608
@@ -1674,7 +1674,7 @@ static int omapfb_do_probe(struct platform_device *pdev,
1674 goto cleanup; 1674 goto cleanup;
1675 } 1675 }
1676 1676
1677 if (pdev->dev.platform_data == NULL) { 1677 if (dev_get_platdata(&pdev->dev) == NULL) {
1678 dev_err(&pdev->dev, "missing platform data\n"); 1678 dev_err(&pdev->dev, "missing platform data\n");
1679 r = -ENOENT; 1679 r = -ENOENT;
1680 goto cleanup; 1680 goto cleanup;