OSDN Git Service

video: mmp: drop needless devm cleanup
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 23 Sep 2013 16:13:10 +0000 (18:13 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 26 Sep 2013 08:41:24 +0000 (11:41 +0300)
commitfb8a15079a579f4cd0e01c9d37e868f5c2b4994c
treec2e7feb959fad7e77d6a6a927e446650bdaa9c13
parent633358e9ff19145fde81903a8310ecc252dc8bca
video: mmp: drop needless devm cleanup

The nice thing about devm_* is that the driver doesn't need to free the
resources but the driver core takes care about that. This also
simplifies the error path quite a bit and removes the wrong check for a
clock pointer being NULL.

Russell King - ARM Linux <linux@arm.linux.org.uk>:
"And this patch also fixes the above: disabling/unpreparing _after_ putting
the thing - which was quite silly... :)"

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/mmp/hw/mmp_ctrl.c