Re: [PATCH 1/2] mtd: mxc_nand: fix unbalanced clk_disable() in error path

2012-12-10 Thread Artem Bityutskiy
On Thu, 2012-12-06 at 08:42 +0100, Lothar Waßmann wrote: > If nand_scan_ident() or nand_scan_tail() fails, the NAND chip may have > been deselected and the clock already disabled. Thus, check 'clk_act' > in the error path to decide whether the clock still needs to be > disabled. > > This fixes a:

Re: [PATCH 1/2] mtd: mxc_nand: fix unbalanced clk_disable() in error path

2012-12-05 Thread Sascha Hauer
On Thu, Dec 06, 2012 at 08:42:27AM +0100, Lothar Waßmann wrote: > If nand_scan_ident() or nand_scan_tail() fails, the NAND chip may have > been deselected and the clock already disabled. Thus, check 'clk_act' > in the error path to decide whether the clock still needs to be > disabled. > > This fi

[PATCH 1/2] mtd: mxc_nand: fix unbalanced clk_disable() in error path

2012-12-05 Thread Lothar Waßmann
If nand_scan_ident() or nand_scan_tail() fails, the NAND chip may have been deselected and the clock already disabled. Thus, check 'clk_act' in the error path to decide whether the clock still needs to be disabled. This fixes a: |WARNING: at drivers/clk/clk.c:472 __clk_disable+0x3c/0x78() Signed-