diff options
author | Benjamin Gaignard <benjamin.gaignard@linaro.org> | 2017-05-29 11:45:51 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2017-06-04 21:57:14 -0400 |
commit | f3ca01d3d7793f76a03ff17945e1b1f2138be9fb (patch) | |
tree | 129fb4aacd816d8dc98b347c1dc7bfbfb1f73bdf | |
parent | 7f696942a7e52df2a99410bf23da513f9aad04fb (diff) |
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
-rw-r--r-- | drivers/gpu/drm/zte/zx_drm_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/zte/zx_drm_drv.c b/drivers/gpu/drm/zte/zx_drm_drv.c index 490aafc99610..f46c855d274b 100644 --- a/drivers/gpu/drm/zte/zx_drm_drv.c +++ b/drivers/gpu/drm/zte/zx_drm_drv.c | |||
@@ -196,7 +196,7 @@ static int zx_drm_probe(struct platform_device *pdev) | |||
196 | struct component_match *match = NULL; | 196 | struct component_match *match = NULL; |
197 | int ret; | 197 | int ret; |
198 | 198 | ||
199 | ret = of_platform_populate(parent, NULL, NULL, dev); | 199 | ret = devm_of_platform_populate(dev); |
200 | if (ret) | 200 | if (ret) |
201 | return ret; | 201 | return ret; |
202 | 202 | ||