diff options
| author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-12-11 05:34:37 -0500 |
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2013-12-17 20:23:46 -0500 |
| commit | d6e4b28b60c5dae660aebe5cd731b21d02ca285e (patch) | |
| tree | 8dbd4ad61de18f5d2f0354d9b82f1c9c3dc713e0 /include/drm | |
| parent | 2c695fa0444273c7139a3ca4c324c95498a0bfed (diff) | |
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>
Diffstat (limited to 'include/drm')
| -rw-r--r-- | include/drm/drm_agpsupport.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/drm/drm_agpsupport.h b/include/drm/drm_agpsupport.h index a12b0e011e44..56a861b2ceaa 100644 --- a/include/drm/drm_agpsupport.h +++ b/include/drm/drm_agpsupport.h | |||
| @@ -20,7 +20,6 @@ DRM_AGP_MEM *drm_agp_bind_pages(struct drm_device *dev, | |||
| 20 | uint32_t type); | 20 | uint32_t type); |
| 21 | 21 | ||
| 22 | struct drm_agp_head *drm_agp_init(struct drm_device *dev); | 22 | struct drm_agp_head *drm_agp_init(struct drm_device *dev); |
| 23 | void drm_agp_destroy(struct drm_agp_head *agp); | ||
| 24 | void drm_agp_clear(struct drm_device *dev); | 23 | void drm_agp_clear(struct drm_device *dev); |
| 25 | int drm_agp_acquire(struct drm_device *dev); | 24 | int drm_agp_acquire(struct drm_device *dev); |
| 26 | int drm_agp_acquire_ioctl(struct drm_device *dev, void *data, | 25 | int drm_agp_acquire_ioctl(struct drm_device *dev, void *data, |
| @@ -76,10 +75,6 @@ static inline struct drm_agp_head *drm_agp_init(struct drm_device *dev) | |||
| 76 | return NULL; | 75 | return NULL; |
| 77 | } | 76 | } |
| 78 | 77 | ||
| 79 | static inline void drm_agp_destroy(struct drm_agp_head *agp) | ||
| 80 | { | ||
| 81 | } | ||
| 82 | |||
| 83 | static inline void drm_agp_clear(struct drm_device *dev) | 78 | static inline void drm_agp_clear(struct drm_device *dev) |
| 84 | { | 79 | { |
| 85 | } | 80 | } |
