Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Benjamin Gaignard and committed by
Shawn Guo
f3ca01d3 7f696942

+1 -1
+1 -1
drivers/gpu/drm/zte/zx_drm_drv.c
··· 196 196 struct component_match *match = NULL; 197 197 int ret; 198 198 199 - ret = of_platform_populate(parent, NULL, NULL, dev); 199 + ret = devm_of_platform_populate(dev); 200 200 if (ret) 201 201 return ret; 202 202