diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2016-10-22 14:15:22 -0200 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-10-28 09:58:05 +0200 |
commit | ce93bedb5ed2b16c08c6df4c797865f9ead600a3 (patch) | |
tree | 045b76762fcddfe757a539ab39425e5756851e01 /drivers/ata | |
parent | 07d9a380680d1c0eb51ef87ff2eab5c994949e69 (diff) | |
download | linux-stable-ce93bedb5ed2b16c08c6df4c797865f9ead600a3.tar.gz linux-stable-ce93bedb5ed2b16c08c6df4c797865f9ead600a3.tar.bz2 linux-stable-ce93bedb5ed2b16c08c6df4c797865f9ead600a3.zip |
mtd: nand: gpmi: disable the clocks on errors
We should disable the previously enabled GPMI clocks in the error paths.
Also, when gpmi_enable_clk() fails simply return the error
code immediately rather than jumping to to the 'err_out' label.
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Acked-by: Han Xu <han.xu@nxp.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/ata')
0 files changed, 0 insertions, 0 deletions