drm: sti: make driver use devm_of_platform_populate()
authorBenjamin Gaignard <benjamin.gaignard@linaro.org>
Fri, 24 Feb 2017 16:14:34 +0000 (17:14 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 27 Feb 2017 16:20:29 +0000 (17:20 +0100)
commitac7d3af84b24eb20d2ac945c525147d24d7b230b
treeb026233a72d7426719e2e3ddaeb2d97988755939
parent38b0b219fbe89d824213beabf03bfb00b5d2c8fa
drm: sti: make driver use devm_of_platform_populate()

This make sure that of_platform_depopulate() is called if an error
occur in probe after populating the date from the device tree.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1487952874-23635-3-git-send-email-benjamin.gaignard@linaro.org
drivers/gpu/drm/sti/sti_drv.c