OSDN Git Service

drm: Make drm_pci_agp_init legacy
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 7 Mar 2020 09:37:02 +0000 (09:37 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 9 Mar 2020 09:22:50 +0000 (09:22 +0000)
commitee21ec7767621c1adb0a388e0e7d841674cdc43f
tree1ecb4f1509c3b6eb3c6fe93391f9c66862d0050f
parent7e4f6fb354089e42236241ed6a8e19a8b84638df
drm: Make drm_pci_agp_init legacy

Pull the drm_pci_agp_init() underneath the legacy ifdeffry alongside its
only caller.

The diff chooses it to so it by moving drm_pci_agp_destroy earlier, but
the important bit is moving the #ifdef earlier before drm_pci_agp_init.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20200307093702.2269-1-chris@chris-wilson.co.uk
drivers/gpu/drm/drm_pci.c