diff mbox

[16/41] drm/stm: Use .dumb_map_offset and .dumb_destroy defaults

Message ID 1500837417-40580-17-git-send-email-noralf@tronnes.org (mailing list archive)
State New, archived
Headers show

Commit Message

Noralf Trønnes July 23, 2017, 7:16 p.m. UTC
This driver can use the drm_driver.dumb_destroy and
drm_driver.dumb_map_offset defaults, so no need to set them.

Cc: Yannick Fertre <yannick.fertre@st.com>
Cc: Philippe Cornu <philippe.cornu@st.com>
Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Cc: Vincent Abriou <vincent.abriou@st.com>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
---
 drivers/gpu/drm/stm/drv.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Philippe CORNU July 25, 2017, 8:43 a.m. UTC | #1
On 07/23/2017 09:16 PM, Noralf Trønnes wrote:
> This driver can use the drm_driver.dumb_destroy and

> drm_driver.dumb_map_offset defaults, so no need to set them.

> 

> Cc: Yannick Fertre <yannick.fertre@st.com>

> Cc: Philippe Cornu <philippe.cornu@st.com>

> Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org>

> Cc: Vincent Abriou <vincent.abriou@st.com>

> Signed-off-by: Noralf Trønnes <noralf@tronnes.org>

> ---

>   drivers/gpu/drm/stm/drv.c | 2 --

>   1 file changed, 2 deletions(-)

> 

> diff --git a/drivers/gpu/drm/stm/drv.c b/drivers/gpu/drm/stm/drv.c

> index 095971f..b333b37 100644

> --- a/drivers/gpu/drm/stm/drv.c

> +++ b/drivers/gpu/drm/stm/drv.c

> @@ -60,8 +60,6 @@ static struct drm_driver drv_driver = {

>   	.patchlevel = 0,

>   	.fops = &drv_driver_fops,

>   	.dumb_create = drm_gem_cma_dumb_create,

> -	.dumb_map_offset = drm_gem_cma_dumb_map_offset,

> -	.dumb_destroy = drm_gem_dumb_destroy,

>   	.prime_handle_to_fd = drm_gem_prime_handle_to_fd,

>   	.prime_fd_to_handle = drm_gem_prime_fd_to_handle,

>   	.gem_free_object_unlocked = drm_gem_cma_free_object,

> 


Tested-by: Philippe Cornu <philippe.cornu@st.com>

Acked-by: Philippe Cornu <philippe.cornu@st.com>


Many thanks for the cleanup.

Philippe :-)
diff mbox

Patch

diff --git a/drivers/gpu/drm/stm/drv.c b/drivers/gpu/drm/stm/drv.c
index 095971f..b333b37 100644
--- a/drivers/gpu/drm/stm/drv.c
+++ b/drivers/gpu/drm/stm/drv.c
@@ -60,8 +60,6 @@  static struct drm_driver drv_driver = {
 	.patchlevel = 0,
 	.fops = &drv_driver_fops,
 	.dumb_create = drm_gem_cma_dumb_create,
-	.dumb_map_offset = drm_gem_cma_dumb_map_offset,
-	.dumb_destroy = drm_gem_dumb_destroy,
 	.prime_handle_to_fd = drm_gem_prime_handle_to_fd,
 	.prime_fd_to_handle = drm_gem_prime_fd_to_handle,
 	.gem_free_object_unlocked = drm_gem_cma_free_object,