drm/etnaviv: Use drm_dev_unref, not drm_put_dev
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 8 Dec 2016 11:07:36 +0000 (12:07 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 13 Dec 2016 17:13:09 +0000 (18:13 +0100)
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@pengutronix.de>
Cc: Russell King <linux+etnaviv@armlinux.org.uk>
Cc: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161208110739.24417-1-daniel.vetter@ffwll.ch
drivers/gpu/drm/etnaviv/etnaviv_drv.c

index 00368b14d08d43a21dbf22489aeed08d175ede93..30d70ed143f7ab076b05fe26e0e78a0e8c85eaa8 100644 (file)
@@ -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 = {