]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
video: omapfb: use dev_get_platdata()
authorJingoo Han <jg1.han@samsung.com>
Tue, 17 Sep 2013 04:58:58 +0000 (13:58 +0900)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 20 Sep 2013 09:22:01 +0000 (12:22 +0300)
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>
drivers/video/omap/hwa742.c
drivers/video/omap/omapfb_main.c

index f349ee6f0ceafd6ee490835e2931f973f5e4c020..a4ee65b8f9187f8788aec8ae9a92e0169319c38c 100644 (file)
@@ -947,7 +947,7 @@ static int hwa742_init(struct omapfb_device *fbdev, int ext_mode,
        hwa742.extif = fbdev->ext_if;
        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");
 
index d40612c31a989d9437e482496ff52c6f451404d8..e4fc6d9b53718a5b449d7409770b4dce9cf937b2 100644 (file)
@@ -1602,7 +1602,7 @@ static int omapfb_find_ctrl(struct omapfb_device *fbdev)
        char name[17];
        int i;
 
-       conf = fbdev->dev->platform_data;
+       conf = dev_get_platdata(fbdev->dev);
 
        fbdev->ctrl = NULL;
 
@@ -1674,7 +1674,7 @@ static int omapfb_do_probe(struct platform_device *pdev,
                goto cleanup;
        }
 
-       if (pdev->dev.platform_data == NULL) {
+       if (dev_get_platdata(&pdev->dev) == NULL) {
                dev_err(&pdev->dev, "missing platform data\n");
                r = -ENOENT;
                goto cleanup;