ARM: pxa: fix error handling in pxa2xx_drv_pcmcia_probe
authorAxel Lin <axel.lin@gmail.com>
Tue, 27 Dec 2011 08:25:44 +0000 (16:25 +0800)
committerDominik Brodowski <linux@dominikbrodowski.net>
Sat, 3 Mar 2012 13:43:37 +0000 (14:43 +0100)
If pxa2xx_drv_pcmcia_add_one fails, it will go to err1 error path.
Add a missing clk_put in the error path.

Checking the ret value after the for loop is redundant, it is always false.
Thus remove the redundant checking.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Eric Miao <eric.y.miao@gmail.com>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>

No differences found