diff options
| author | Daniel Vetter <[email protected]> | 2013-12-11 10:34:37 +0000 |
|---|---|---|
| committer | Dave Airlie <[email protected]> | 2013-12-18 01:23:46 +0000 |
| commit | d6e4b28b60c5dae660aebe5cd731b21d02ca285e (patch) | |
| tree | 8dbd4ad61de18f5d2f0354d9b82f1c9c3dc713e0 /drivers/gpu/drm/drm_pci.c | |
| parent | drm: remove agp_init() bus callback (diff) | |
| download | kernel-d6e4b28b60c5dae660aebe5cd731b21d02ca285e.tar.gz kernel-d6e4b28b60c5dae660aebe5cd731b21d02ca285e.zip | |
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 <[email protected]>
Reviewed-by: David Herrmann <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/drm_pci.c')
| -rw-r--r-- | drivers/gpu/drm/drm_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_pci.c b/drivers/gpu/drm/drm_pci.c index 2211c4d70c2d..f710e3d9d847 100644 --- a/drivers/gpu/drm/drm_pci.c +++ b/drivers/gpu/drm/drm_pci.c @@ -281,7 +281,7 @@ static void drm_pci_agp_destroy(struct drm_device *dev) if (dev->agp) { arch_phys_wc_del(dev->agp->agp_mtrr); drm_agp_clear(dev); - drm_agp_destroy(dev->agp); + kfree(dev->agp); dev->agp = NULL; } } |
