diff options
Diffstat (limited to 'drivers/staging/omapdrm/omap_encoder.c')
-rw-r--r-- | drivers/staging/omapdrm/omap_encoder.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/omapdrm/omap_encoder.c b/drivers/staging/omapdrm/omap_encoder.c index 83bacd8..06c52cb 100644 --- a/drivers/staging/omapdrm/omap_encoder.c +++ b/drivers/staging/omapdrm/omap_encoder.c @@ -164,8 +164,7 @@ struct drm_encoder *omap_encoder_init(struct drm_device *dev, fail: if (encoder) { - drm_encoder_cleanup(encoder); - kfree(omap_encoder); + omap_encoder_destroy(encoder); } return NULL; |