diff options
| author | Vladimir Zapolskiy <[email protected]> | 2015-06-01 15:29:54 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2015-06-12 17:03:56 -0700 |
| commit | ee895ccdf776a676655b1405d493cfcf43d157f0 (patch) | |
| tree | 49b5cf106db7c116b8e1f7dd3f3eec6795800647 /tools/perf/scripts/python | |
| parent | 0a3405d35c72535d6a57af3cad29ed14d26cd203 (diff) | |
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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions