drm/stm: ltdc: add devm_reset_control & platform_get_ressource
authorPhilippe CORNU <philippe.cornu@st.com>
Thu, 20 Jul 2017 12:05:55 +0000 (14:05 +0200)
committerBenjamin Gaignard <benjamin.gaignard@linaro.org>
Wed, 26 Jul 2017 13:02:00 +0000 (15:02 +0200)
commit589b6482232e621379d7f17817b7c34db09c75ef
treebf5873b6170527b8a0aeff9689b29481d0ae8f44
parentc994796f647456a20b3a919a155402401bcd7170
drm/stm: ltdc: add devm_reset_control & platform_get_ressource

Use devm_reset_control_get_exclusive to avoid resource leakage (based
on patch "Convert drivers to explicit reset API" from Philipp Zabel).

Also use platform_get_resource, which is more usual and
consistent with platform_get_irq called later.

Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
Signed-off-by: Philippe CORNU <philippe.cornu@st.com>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1500552357-29487-6-git-send-email-philippe.cornu@st.com
drivers/gpu/drm/stm/ltdc.c