mtd: fsl-quadspi: Let the clocks error path be clearer
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 17 Oct 2014 20:14:01 +0000 (17:14 -0300)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 22 Oct 2014 08:35:41 +0000 (01:35 -0700)
commit77adc085aee0c96dc3536403b197707316c7c241
treeb1006e00ff03424a1a1e6a19475a325efee76b6f
parentb26171e392c7d3952b6eeb6da62a861c5317e438
mtd: fsl-quadspi: Let the clocks error path be clearer

When clk_prepare_enable(q->clk) fails it is clearer to disable the previous
acquired clock (q->clk_en) in the error path rather than doing it locally.

So disable q->clk_en in the error path only.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Huang Shijie <shijie8@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/spi-nor/fsl-quadspi.c