drm/agp: move AGP cleanup paths to drm_agpsupport.c
authorDavid Herrmann <dh.herrmann@gmail.com>
Sat, 27 Jul 2013 14:37:00 +0000 (16:37 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 7 Aug 2013 00:14:24 +0000 (10:14 +1000)
commit1f6dd9c7506bf9d1feddd8f24cadf5828fdeca9d
tree1ceebcff67e41b55b570869984a15d62523aa8a7
parent76553ae4946729f6591d10eef827e28b52ed5713
drm/agp: move AGP cleanup paths to drm_agpsupport.c

Introduce two new helpers, drm_agp_clear() and drm_agp_destroy() which
clear all AGP mappings and destroy the AGP head. This allows to reduce the
AGP code in core DRM and move it all to drm_agpsupport.c.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_agpsupport.c
drivers/gpu/drm/drm_drv.c
drivers/gpu/drm/drm_pci.c
drivers/gpu/drm/drm_stub.c
include/drm/drmP.h