mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
mtd: spi-nor: cadence-quadspi: Fix error path in probe
Fix the reversed goto labels, so that we disable cqspi controller only if its enabled previously. This is a minor cleanup. Signed-off-by: Vignesh R <vigneshr@ti.com> Acked-by: Marek Vasut <marek.vasut@gmail.com> Signed-off-by: Cyrille Pitchen <cyrille.pitchen@wedev4u.fr>
This commit is contained in:
parent
e2580a4add
commit
329864d35a
1 changed files with 2 additions and 2 deletions
|
|
@ -1255,9 +1255,9 @@ static int cqspi_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
return ret;
|
||||
probe_irq_failed:
|
||||
cqspi_controller_enable(cqspi, 0);
|
||||
probe_setup_failed:
|
||||
cqspi_controller_enable(cqspi, 0);
|
||||
probe_irq_failed:
|
||||
clk_disable_unprepare(cqspi->clk);
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue