]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
drm: replace "drm_dev_unref" function with "drm_dev_put"
authorFernando Ramos <greenfoo@gluegarage.com>
Thu, 15 Nov 2018 22:16:23 +0000 (23:16 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 24 Nov 2018 21:12:54 +0000 (22:12 +0100)
This patch unifies the naming of DRM functions for reference counting as
requested on Documentation/gpu/todo.rst

Signed-off-by: Fernando Ramos <greenfoo@gluegarage.com>
Acked-by: Boris Brezillon <boris.brezillon@bootlin.com>
Acked-by: Alexey Brodkin <abrodkin@synopsys.com>
Acked-by: Stefan Agner <stefan@agner.ch>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20181115221634.22715-4-greenfoo@gluegarage.com
drivers/gpu/drm/arc/arcpgu_drv.c
drivers/gpu/drm/etnaviv/etnaviv_drv.c
drivers/gpu/drm/mxsfb/mxsfb_drv.c
drivers/gpu/drm/rcar-du/rcar_du_drv.c
drivers/gpu/drm/shmobile/shmob_drm_drv.c
drivers/gpu/drm/tve200/tve200_drv.c

index 2af847ebca3404d6a3e4adeb9c19d3e27cd066f4..206a76abf77133f0e56ac668041ada8b9ea9859b 100644 (file)
@@ -190,7 +190,7 @@ err_unload:
        arcpgu_unload(drm);
 
 err_unref:
-       drm_dev_unref(drm);
+       drm_dev_put(drm);
 
        return ret;
 }
@@ -201,7 +201,7 @@ static int arcpgu_remove(struct platform_device *pdev)
 
        drm_dev_unregister(drm);
        arcpgu_unload(drm);
-       drm_dev_unref(drm);
+       drm_dev_put(drm);
 
        return 0;
 }
index 83c1f46670bfea9dcbe95e42da598c8665576b03..52802e6049e0adab5045b57cc09bd265708ae34d 100644 (file)
@@ -550,7 +550,7 @@ out_register:
 out_bind:
        kfree(priv);
 out_unref:
-       drm_dev_unref(drm);
+       drm_dev_put(drm);
 
        return ret;
 }
@@ -567,7 +567,7 @@ static void etnaviv_unbind(struct device *dev)
        drm->dev_private = NULL;
        kfree(priv);
 
-       drm_dev_unref(drm);
+       drm_dev_put(drm);
 }
 
 static const struct component_master_ops etnaviv_master_ops = {
index 2393e6d16ffd4d4118335a018747e218755cb8e9..88ba003979e6b841cce82bd390282335ebb13028 100644 (file)
@@ -417,7 +417,7 @@ static int mxsfb_probe(struct platform_device *pdev)
 err_unload:
        mxsfb_unload(drm);
 err_free:
-       drm_dev_unref(drm);
+       drm_dev_put(drm);
 
        return ret;
 }
@@ -428,7 +428,7 @@ static int mxsfb_remove(struct platform_device *pdev)
 
        drm_dev_unregister(drm);
        mxsfb_unload(drm);
-       drm_dev_unref(drm);
+       drm_dev_put(drm);
 
        return 0;
 }
index 7015974c247a04db2a3221eb781f5476fe273543..c6770043dcdcaea664b993497d07c0d8613d0fbf 100644 (file)
@@ -437,7 +437,7 @@ static int rcar_du_remove(struct platform_device *pdev)
        drm_kms_helper_poll_fini(ddev);
        drm_mode_config_cleanup(ddev);
 
-       drm_dev_unref(ddev);
+       drm_dev_put(ddev);
 
        return 0;
 }
index 6ececad6f84574043db9d9d33515f1c24a2d40ea..8554102a6ead189e3b29f380c89867f942b2b73e 100644 (file)
@@ -194,7 +194,7 @@ static int shmob_drm_remove(struct platform_device *pdev)
        drm_kms_helper_poll_fini(ddev);
        drm_mode_config_cleanup(ddev);
        drm_irq_uninstall(ddev);
-       drm_dev_unref(ddev);
+       drm_dev_put(ddev);
 
        return 0;
 }
@@ -290,7 +290,7 @@ err_modeset_cleanup:
        drm_kms_helper_poll_fini(ddev);
        drm_mode_config_cleanup(ddev);
 err_free_drm_dev:
-       drm_dev_unref(ddev);
+       drm_dev_put(ddev);
 
        return ret;
 }
index 72efcecb44f75446fcb3335d7296b0c4304580f8..28e2d03c0ccffa5b7403ec723ea0a676638872cb 100644 (file)
@@ -249,7 +249,7 @@ static int tve200_probe(struct platform_device *pdev)
 clk_disable:
        clk_disable_unprepare(priv->pclk);
 dev_unref:
-       drm_dev_unref(drm);
+       drm_dev_put(drm);
        return ret;
 }
 
@@ -263,7 +263,7 @@ static int tve200_remove(struct platform_device *pdev)
                drm_panel_bridge_remove(priv->bridge);
        drm_mode_config_cleanup(drm);
        clk_disable_unprepare(priv->pclk);
-       drm_dev_unref(drm);
+       drm_dev_put(drm);
 
        return 0;
 }