diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2021-04-15 04:23:15 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2021-07-28 15:33:32 +0200 |
commit | 6571a76af380290dd9a003a3bc90d4779ec4f8f8 (patch) | |
tree | e79e6a7eafd4f9015cc5d9182c3406926f98f94a /drivers/gpu/drm/rcar-du | |
parent | drm: rcar-du: lvds: Don't set bridge driver_private field (diff) | |
download | linux-6571a76af380290dd9a003a3bc90d4779ec4f8f8.tar.xz linux-6571a76af380290dd9a003a3bc90d4779ec4f8f8.zip |
drm: rcar-du: lvds: Use dev_err_probe()
Simplify error handling by using the dev_err_probe() function.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Diffstat (limited to 'drivers/gpu/drm/rcar-du')
-rw-r--r-- | drivers/gpu/drm/rcar-du/rcar_lvds.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/rcar-du/rcar_lvds.c b/drivers/gpu/drm/rcar-du/rcar_lvds.c index 0804a2773e56..d061b8de748f 100644 --- a/drivers/gpu/drm/rcar-du/rcar_lvds.c +++ b/drivers/gpu/drm/rcar-du/rcar_lvds.c @@ -743,9 +743,8 @@ static struct clk *rcar_lvds_get_clock(struct rcar_lvds *lvds, const char *name, if (PTR_ERR(clk) == -ENOENT && optional) return NULL; - if (PTR_ERR(clk) != -EPROBE_DEFER) - dev_err(lvds->dev, "failed to get %s clock\n", - name ? name : "module"); + dev_err_probe(lvds->dev, PTR_ERR(clk), "failed to get %s clock\n", + name ? name : "module"); return clk; } |