Skip to content

Commit

Permalink
DMAENGINE: ste_dma40: fix clk_get failure path
Browse files Browse the repository at this point in the history
clk_get returns an ERR_PTR.

Acked-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
  • Loading branch information
Rabin Vincent authored and Dan Williams committed Oct 7, 2010
1 parent f57b407 commit c6134c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/ste_dma40.c
Original file line number Diff line number Diff line change
Expand Up @@ -2636,7 +2636,7 @@ static struct d40_base * __init d40_hw_detect_init(struct platform_device *pdev)
return base;

failure:
if (clk) {
if (!IS_ERR(clk)) {
clk_disable(clk);
clk_put(clk);
}
Expand Down

0 comments on commit c6134c9

Please sign in to comment.