drm/nouveau: use bo->base.size instead of mem->num_pages
authorChristian König <christian.koenig@amd.com>
Thu, 11 Feb 2021 13:01:40 +0000 (14:01 +0100)
committerChristian König <christian.koenig@amd.com>
Mon, 19 Apr 2021 13:05:06 +0000 (15:05 +0200)
commitaeaf45c5fdb9f1b0e8012eba6573fb47cc5a063b
tree1c447305ba9fb321e74ad56687618876fe84afc3
parent44292a0f9d755a2a0aaa3b71c4415a077a3bce81
drm/nouveau: use bo->base.size instead of mem->num_pages

Change a couple of cases where it makes more sense to use the base size
instead of the number of pages in the resource.

Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210413135248.1266-1-christian.koenig@amd.com
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/nouveau/nouveau_fbcon.c
drivers/gpu/drm/nouveau/nouveau_gem.c