drm: hide legacy sg cleanup better from common code
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 8 Aug 2013 13:41:17 +0000 (15:41 +0200)
committerDave Airlie <airlied@redhat.com>
Mon, 19 Aug 2013 00:03:49 +0000 (10:03 +1000)
commit3d914e8357256e7e92d1b7dd2dda9cf94e39c4e8
tree252aea0277f6713ba7b57e7e6615f599e373186b
parent45886af246d926304d5e990da63d55d9db3216c0
drm: hide legacy sg cleanup better from common code

I've decided that some clear markers for what's legacy dri1/non-gem
code is useful. I've opted to use the drm_legacy prefix and then hide
all the checks in that function for better readability in the common
code.

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_drv.c
drivers/gpu/drm/drm_scatter.c
include/drm/drmP.h