diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2019-05-27 11:26:42 +0200 |
---|---|---|
committer | Geert Uytterhoeven <geert+renesas@glider.be> | 2019-06-04 10:57:11 +0200 |
commit | ed04e6288ac59a59a2e9265194a6be892f708c66 (patch) | |
tree | 9e8409077f606f657966b82808ba73d667c37141 /drivers/clk/renesas | |
parent | clk: renesas: cpg-mssr: Use genpd of_node instead of local copy (diff) | |
download | linux-ed04e6288ac59a59a2e9265194a6be892f708c66.tar.xz linux-ed04e6288ac59a59a2e9265194a6be892f708c66.zip |
clk: renesas: cpg-mssr: 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/renesas-cpg-mssr.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/clk/renesas/renesas-cpg-mssr.c b/drivers/clk/renesas/renesas-cpg-mssr.c index d1054204f3a7..082d0bf12ea7 100644 --- a/drivers/clk/renesas/renesas-cpg-mssr.c +++ b/drivers/clk/renesas/renesas-cpg-mssr.c @@ -509,16 +509,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; |