[PATCH 1/4] drm/etnaviv: Use drm_dev_unref, not drm_put_dev
Lucas Stach
l.stach at pengutronix.de
Tue Dec 13 10:52:01 UTC 2016
Am Donnerstag, den 08.12.2016, 12:07 +0100 schrieb Daniel Vetter:
> drm_put_dev is the old midlayer-broken device cleanup function, but
> etnaviv has a proper unbind function which first unregisters and then
> drops the final reference. No functional change since
> drm_dev_unregister happens to be idempotent.
>
> Cc: Lucas Stach <l.stach at pengutronix.de>
> Cc: Russell King <linux+etnaviv at armlinux.org.uk>
> Cc: Christian Gmeiner <christian.gmeiner at gmail.com>
> Signed-off-by: Daniel Vetter <daniel.vetter at intel.com>
Reviewed-by: Lucas Stach <l.stach at pengutronix.de>
> ---
> drivers/gpu/drm/etnaviv/etnaviv_drv.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers/gpu/drm/etnaviv/etnaviv_drv.c
> index 00368b14d08d..30d70ed143f7 100644
> --- a/drivers/gpu/drm/etnaviv/etnaviv_drv.c
> +++ b/drivers/gpu/drm/etnaviv/etnaviv_drv.c
> @@ -592,7 +592,7 @@ static void etnaviv_unbind(struct device *dev)
> drm->dev_private = NULL;
> kfree(priv);
>
> - drm_put_dev(drm);
> + drm_dev_unref(drm);
> }
>
> static const struct component_master_ops etnaviv_master_ops = {
More information about the dri-devel
mailing list