diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2019-05-27 11:24:16 +0200 |
---|---|---|
committer | Geert Uytterhoeven <geert+renesas@glider.be> | 2019-06-04 10:57:15 +0200 |
commit | 0f7ece0d1434002d853b74461e43e3a88524dfcf (patch) | |
tree | bb15b65f1a214730b0f5ca2ed1716fda1b9d66ee /drivers/clk/renesas | |
parent | ed04e6288ac59a59a2e9265194a6be892f708c66 (diff) | |
download | linux-0f7ece0d1434002d853b74461e43e3a88524dfcf.tar.bz2 |
clk: renesas: mstp: Remove error messages on out-of-memory conditions
pm_clk_create() and pm_clk_add_clk() can fail only when running out of
memory. Hence there is no need to print error messages on failure, as
the memory allocation core already takes care of that.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Diffstat (limited to 'drivers/clk/renesas')
-rw-r--r-- | drivers/clk/renesas/clk-mstp.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/clk/renesas/clk-mstp.c b/drivers/clk/renesas/clk-mstp.c index 92ece221b0d4..74d77a94592c 100644 --- a/drivers/clk/renesas/clk-mstp.c +++ b/drivers/clk/renesas/clk-mstp.c @@ -297,16 +297,12 @@ found: return PTR_ERR(clk); error = pm_clk_create(dev); - if (error) { - dev_err(dev, "pm_clk_create failed %d\n", error); + if (error) goto fail_put; - } error = pm_clk_add_clk(dev, clk); - if (error) { - dev_err(dev, "pm_clk_add_clk %pC failed %d\n", clk, error); + if (error) goto fail_destroy; - } return 0; |