Commit 6571a76a authored by Laurent Pinchart's avatar Laurent Pinchart

drm: rcar-du: lvds: Use dev_err_probe()

Simplify error handling by using the dev_err_probe() function.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: default avatarKieran Bingham <kieran.bingham+renesas@ideasonboard.com>
parent 9b54182c
...@@ -743,8 +743,7 @@ static struct clk *rcar_lvds_get_clock(struct rcar_lvds *lvds, const char *name, ...@@ -743,8 +743,7 @@ static struct clk *rcar_lvds_get_clock(struct rcar_lvds *lvds, const char *name,
if (PTR_ERR(clk) == -ENOENT && optional) if (PTR_ERR(clk) == -ENOENT && optional)
return NULL; return NULL;
if (PTR_ERR(clk) != -EPROBE_DEFER) dev_err_probe(lvds->dev, PTR_ERR(clk), "failed to get %s clock\n",
dev_err(lvds->dev, "failed to get %s clock\n",
name ? name : "module"); name ? name : "module");
return clk; return clk;
......
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