Commit f3ca01d3 authored by Benjamin Gaignard's avatar Benjamin Gaignard Committed by Shawn Guo

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: default avatarBenjamin 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: default avatarShawn Guo <shawn.guo@linaro.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1496072763-31209-4-git-send-email-benjamin.gaignard@linaro.org
parent 7f696942
...@@ -196,7 +196,7 @@ static int zx_drm_probe(struct platform_device *pdev) ...@@ -196,7 +196,7 @@ static int zx_drm_probe(struct platform_device *pdev)
struct component_match *match = NULL; struct component_match *match = NULL;
int ret; int ret;
ret = of_platform_populate(parent, NULL, NULL, dev); ret = devm_of_platform_populate(dev);
if (ret) if (ret)
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment