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)
commit28ec711cd427f8b61f73712a43b8100ba8ca933b
tree1ceebcff67e41b55b570869984a15d62523aa8a7
parent08fcd72b14e440feb748ddc33e7057716116a74a
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