Skip to content

Commit 5c2b745

Browse files
Dan Carpenterdaeinki
authored andcommitted
drm/exynos: fix IS_ERR() vs NULL check in probe
The of_drm_find_bridge() does not return error pointers, it returns NULL on error. Fixes: dd8b680 ("exynos: drm: dsi: Attach in_bridge in MIC driver") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
1 parent b13bacc commit 5c2b745

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/gpu/drm/exynos/exynos_drm_mic.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,9 +434,9 @@ static int exynos_mic_probe(struct platform_device *pdev)
434434

435435
remote = of_graph_get_remote_node(dev->of_node, 1, 0);
436436
mic->next_bridge = of_drm_find_bridge(remote);
437-
if (IS_ERR(mic->next_bridge)) {
437+
if (!mic->next_bridge) {
438438
DRM_DEV_ERROR(dev, "mic: Failed to find next bridge\n");
439-
ret = PTR_ERR(mic->next_bridge);
439+
ret = -EPROBE_DEFER;
440440
goto err;
441441
}
442442

0 commit comments

Comments
 (0)