drm/nouveau: allow creation of zero-sized mm
authorBen Skeggs <bskeggs@redhat.com>
Wed, 31 Oct 2012 01:19:40 +0000 (11:19 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 31 Oct 2012 01:22:51 +0000 (11:22 +1000)
commita7dbf00433fa9dc6f4a3828a17d56a9df2bd06b1
treed59a16030201ea5d9a1dded6585b36fe4cf8ffcf
parent1249ac592a2f995fef977be33abf077bdb57b3aa
drm/nouveau: allow creation of zero-sized mm

Useful for places where a given chipset may or may not have a given
resource, and we want to avoid having to spray checks for the mm's
existance around everywhere.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/core/mm.c
drivers/gpu/drm/nouveau/core/include/core/mm.h