drm crtc: use drm_mode_destroy instead of kfree in drm_mode_remove
authorSascha Hauer <s.hauer@pengutronix.de>
Wed, 1 Feb 2012 10:38:19 +0000 (11:38 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 3 Feb 2012 09:50:38 +0000 (09:50 +0000)
commit554f1d7888d4a1055965198d0ac46ba50e8b684e
treec0ce511699a77399ba1c20206277c05a62392bd6
parentaefd330e694d5b7b9657cc53821c7879b14c8128
drm crtc: use drm_mode_destroy instead of kfree in drm_mode_remove

Modes are created using drm_mode_create which does a
drm_mode_object_get, so use drm_mode_destroy in drm_mode_remove
which does a drm_mode_object_put.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc.c