drm: provide device-refcount
[platform/adaptation/renesas_rcar/renesas_kernel.git] / drivers / gpu / drm / tegra / bus.c
index 7c9058f..cded085 100644 (file)
@@ -53,7 +53,7 @@ int drm_host1x_init(struct drm_driver *driver, struct host1x_device *device)
        return 0;
 
 err_free:
-       drm_dev_free(drm);
+       drm_dev_unref(drm);
        return ret;
 }