]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit07969c1fe32dad8007019fd6bb7be98a28364ee8
treec2e7feb959fad7e77d6a6a927e446650bdaa9c13
parent39c8b22f7ffbf059f5c202bfaf2a49a6fe718ede
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