Skip to content

Commit 6571a76

Browse files
author
Laurent Pinchart
committed
drm: rcar-du: lvds: Use dev_err_probe()
Simplify error handling by using the dev_err_probe() function. Signed-off-by: Laurent Pinchart <[email protected]> Reviewed-by: Kieran Bingham <[email protected]>
1 parent 9b54182 commit 6571a76

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/gpu/drm/rcar-du/rcar_lvds.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -743,9 +743,8 @@ static struct clk *rcar_lvds_get_clock(struct rcar_lvds *lvds, const char *name,
743743
if (PTR_ERR(clk) == -ENOENT && optional)
744744
return NULL;
745745

746-
if (PTR_ERR(clk) != -EPROBE_DEFER)
747-
dev_err(lvds->dev, "failed to get %s clock\n",
748-
name ? name : "module");
746+
dev_err_probe(lvds->dev, PTR_ERR(clk), "failed to get %s clock\n",
747+
name ? name : "module");
749748

750749
return clk;
751750
}

0 commit comments

Comments
 (0)