]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/gpu/drm/nouveau/nouveau_display.c
drm/nouveau: pass nvif_client to nouveau_gem_new() instead of drm_device
[karo-tx-linux.git] / drivers / gpu / drm / nouveau / nouveau_display.c
index 6b570079d1854475d94ef81059884f9fe92c9b1c..cac940c289b02eb8471f0824f534f53f1426d02c 100644 (file)
@@ -1057,6 +1057,7 @@ int
 nouveau_display_dumb_create(struct drm_file *file_priv, struct drm_device *dev,
                            struct drm_mode_create_dumb *args)
 {
+       struct nouveau_cli *cli = nouveau_cli(file_priv);
        struct nouveau_bo *bo;
        uint32_t domain;
        int ret;
@@ -1071,7 +1072,7 @@ nouveau_display_dumb_create(struct drm_file *file_priv, struct drm_device *dev,
        else
                domain = NOUVEAU_GEM_DOMAIN_GART;
 
-       ret = nouveau_gem_new(dev, args->size, 0, domain, 0, 0, &bo);
+       ret = nouveau_gem_new(cli, args->size, 0, domain, 0, 0, &bo);
        if (ret)
                return ret;