summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/raw/brcmnand/brcmnand.c
diff options
context:
space:
mode:
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>2021-03-02 18:57:57 +0530
committerMiquel Raynal <miquel.raynal@bootlin.com>2021-03-11 09:37:30 +0100
commit55fbb9ba4f06cb6aff32daca1e1910173c13ec51 (patch)
treef8842d2418cc31dda7a5beaf20470d66b4606182 /drivers/mtd/nand/raw/brcmnand/brcmnand.c
parent08608adb520e51403be7592c2214846fa440a23a (diff)
mtd: rawnand: qcom: Return actual error code instead of -ENODEV
In qcom_probe_nand_devices() function, the error code returned by qcom_nand_host_init_and_register() is converted to -ENODEV in the case of failure. This poses issue if -EPROBE_DEFER is returned when the dependency is not available for a component like parser. So let's restructure the error handling logic a bit and return the actual error code in case of qcom_nand_host_init_and_register() failure. Fixes: c76b78d8ec05 ("mtd: nand: Qualcomm NAND controller driver") Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'drivers/mtd/nand/raw/brcmnand/brcmnand.c')
0 files changed, 0 insertions, 0 deletions