diff options
author | Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com> | 2015-06-01 14:29:54 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-06-13 02:03:56 +0200 |
commit | ee895ccdf776a676655b1405d493cfcf43d157f0 (patch) | |
tree | 49b5cf106db7c116b8e1f7dd3f3eec6795800647 /arch/mips/sgi-ip32 | |
parent | misc: mic: Fix reported static checker warning (diff) | |
download | linux-ee895ccdf776a676655b1405d493cfcf43d157f0.tar.xz linux-ee895ccdf776a676655b1405d493cfcf43d157f0.zip |
misc: sram: fix enabled clock leak on error path
If devm_gen_pool_create() fails, the previously enabled sram->clk is
not disabled on probe() exit.
Because reserved block logic relies only on information from device tree,
there is no need to get and enable device clock in advance, especially
because not provided clock is not considered as an error, so it is
safe to place devm_clk_get() at the end of probe(). No functional
change.
Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/mips/sgi-ip32')
0 files changed, 0 insertions, 0 deletions