]> git.karo-electronics.de Git - linux-beck.git/commit
mtd: fsl-quadspi: Fix the error paths
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 23 Jan 2015 00:43:05 +0000 (22:43 -0200)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 6 Feb 2015 03:51:27 +0000 (19:51 -0800)
commite4ca6840837be86b89e77c8402c1e6ab8a36f274
treeb35866596efd5b6b38bd5697ec9977fda2e58908
parent0760e818646d801a13eed57f5fb75c43c7c2794a
mtd: fsl-quadspi: Fix the error paths

Jumping to 'map_failed' label is not correct at these points, as it misses to
disable the clocks that were previously enabled.

Jump to 'irq_failed' label instead that will correctly disable the clocks.

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