diff options
author | Eric Anholt <eric@anholt.net> | 2017-05-11 11:31:27 -0700 |
---|---|---|
committer | Archit Taneja <architt@codeaurora.org> | 2017-06-05 15:22:30 +0530 |
commit | 510fc3c0d761b8f274e2a62f9b4c69bdc6841182 (patch) | |
tree | c3a5cd3f56542c0b141d8fee6837ffa0659d4682 /drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c | |
parent | 7b1298e05310f1fe58401f40e5426a558ec5d3ac (diff) | |
download | talos-obmc-linux-510fc3c0d761b8f274e2a62f9b4c69bdc6841182.tar.gz talos-obmc-linux-510fc3c0d761b8f274e2a62f9b4c69bdc6841182.zip |
drm/atmel-hlcdc: Drop custom encoder cleanup func.
drm_encoder_cleanup() finishes with memsetting it to 0, already.
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20170511183128.25085-6-eric@anholt.net
Diffstat (limited to 'drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c')
-rw-r--r-- | drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c index 65a3bd7a0c00..4b2cfbd0d43f 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c @@ -83,14 +83,8 @@ static const struct drm_encoder_helper_funcs atmel_hlcdc_panel_encoder_helper_fu .enable = atmel_hlcdc_rgb_encoder_enable, }; -static void atmel_hlcdc_rgb_encoder_destroy(struct drm_encoder *encoder) -{ - drm_encoder_cleanup(encoder); - memset(encoder, 0, sizeof(*encoder)); -} - static const struct drm_encoder_funcs atmel_hlcdc_panel_encoder_funcs = { - .destroy = atmel_hlcdc_rgb_encoder_destroy, + .destroy = drm_encoder_cleanup, }; static int atmel_hlcdc_panel_get_modes(struct drm_connector *connector) |