I'm a bit confused about how this all works wrt host1x clients, but
this patch looks like the right thing to me.

Cc: Thierry Reding <thierry.reding at gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
---
 drivers/gpu/host1x/drm/drm.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/host1x/drm/drm.c b/drivers/gpu/host1x/drm/drm.c
index df7d90a3a4fa..e2eabc4078d9 100644
--- a/drivers/gpu/host1x/drm/drm.c
+++ b/drivers/gpu/host1x/drm/drm.c
@@ -161,7 +161,6 @@ int host1x_drm_init(struct host1x_drm *host1x, struct 
drm_device *drm)

 int host1x_drm_exit(struct host1x_drm *host1x)
 {
-       struct platform_device *pdev = to_platform_device(host1x->dev);
        struct host1x_client *client;

        if (!host1x->drm)
@@ -184,7 +183,7 @@ int host1x_drm_exit(struct host1x_drm *host1x)

        mutex_unlock(&host1x->clients_lock);

-       drm_platform_exit(&tegra_drm_driver, pdev);
+       drm_put_dev(host1x->drm);
        host1x->drm = NULL;

        return 0;
-- 
1.8.4.rc3

Reply via email to