]> git.baikalelectronics.ru Git - kernel.git/commit
drm: inline drm_agp_destroy
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 11 Dec 2013 10:34:37 +0000 (11:34 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 18 Dec 2013 01:23:46 +0000 (11:23 +1000)
commit9fc8af77f2687c1b080d8b75d5495eeb0c0e456c
tree8dbd4ad61de18f5d2f0354d9b82f1c9c3dc713e0
parent2ace54605139494decd4f6c39e5be09f9635ed79
drm: inline drm_agp_destroy

Wrapping a kfree is pointless.

v2: Add a comment to the kerneldoc for drm_agp_init to explain where
the kfree happens as requested by David. Note that for modeset drivers
agp cleanup is fairly complicated anyway: The drm_agp_clear is a noop
and drivers must call drm_agp_release on their own. Which they all
seem to do properly.

Cc: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_agpsupport.c
drivers/gpu/drm/drm_pci.c
include/drm/drm_agpsupport.h