drm: zte: use devm_of_platform_populate()
authorBenjamin Gaignard <benjamin.gaignard@linaro.org>
Mon, 29 May 2017 15:45:51 +0000 (17:45 +0200)
committerShawn Guo <shawn.guo@linaro.org>
Mon, 5 Jun 2017 01:57:14 +0000 (09:57 +0800)
commitf3ca01d3d7793f76a03ff17945e1b1f2138be9fb
tree129fb4aacd816d8dc98b347c1dc7bfbfb1f73bdf
parent7f696942a7e52df2a99410bf23da513f9aad04fb
drm: zte: use devm_of_platform_populate()

Use devm_of_platform_populate() to be sure that of_platform_depopulate
is called when removing the driver.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
CC: Shawn Guo <shawnguo@kernel.org>
CC: David Airlie <airlied@linux.ie>
CC: dri-devel@lists.freedesktop.org
CC: linux-kernel@vger.kernel.org
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1496072763-31209-4-git-send-email-benjamin.gaignard@linaro.org
drivers/gpu/drm/zte/zx_drm_drv.c