drm: store the gem vma offset manager in a typed pointer
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 11 Dec 2013 13:24:46 +0000 (14:24 +0100)
committerDave Airlie <airlied@redhat.com>
Tue, 14 Jan 2014 02:38:32 +0000 (12:38 +1000)
commitb04a590623661132fbafdda53a6566b227dc39cf
tree864907c8b2e278c3646d0219f241d42f11372815
parentfaf096ffba2b1a4066e6d6dcd1243cc5f3d1fb23
drm: store the gem vma offset manager in a typed pointer

This was hidden in a generic void * dev->mm_private. But only ever
used for gem. But thanks to this fake generic pretension no one
noticed that Rob's drm drivers are now all broken.

So just give the offset manager a type pointer and fix up msm, omapdrm
and tilcdc.

v2: Fixup compile fail.

v3: Fixup rebase fail that David spotted.

Cc: David Herrmann <dh.herrmann@gmail.com>
Cc: Rob Clark <robdclark@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_gem.c
drivers/gpu/drm/msm/msm_drv.c
drivers/gpu/drm/omapdrm/omap_debugfs.c
drivers/gpu/drm/tilcdc/tilcdc_drv.c
include/drm/drmP.h