OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b1298e
)
drm/atmel-hlcdc: Drop custom encoder cleanup func.
author
Eric Anholt
<eric@anholt.net>
Thu, 11 May 2017 18:31:27 +0000
(11:31 -0700)
committer
Archit Taneja
<architt@codeaurora.org>
Mon, 5 Jun 2017 09:52:30 +0000
(15:22 +0530)
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
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c
b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c
index
65a3bd7
..
4b2cfbd
100644
(file)
--- 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)