diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2021-04-15 05:23:15 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2021-07-28 16:33:32 +0300 |
commit | 6571a76af380290dd9a003a3bc90d4779ec4f8f8 (patch) | |
tree | e79e6a7eafd4f9015cc5d9182c3406926f98f94a /drivers/gpu/drm | |
parent | 9b54182ce23946674231bbe3ee22f89dfe274cab (diff) | |
download | linux-stable-6571a76af380290dd9a003a3bc90d4779ec4f8f8.tar.gz linux-stable-6571a76af380290dd9a003a3bc90d4779ec4f8f8.tar.bz2 linux-stable-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')
-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; } |