misc: sram: fix error path in sram_probe
From: Heiko Stuebner <heiko@...> Date: Mon, 24 Jun 2013 14:30:57 +0200
Commit-Message
The pool is created thru devm_gen_pool_create, so the call to gen_pool_destroy is not necessary. Instead the sram-clock must be turned off again if it exists. Signed-off-by: Heiko Stuebner <heiko@...> Tested-by: Ulrich Prinz <ulrich.prinz@...> Acked-by: Philipp Zabel <p.zabel@...>
Patch-Comment
Only included for reference and completeness, as it is already added to the char-misc git tree. drivers/misc/sram.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Statistics
- 2 lines added
- 1 lines removed