diff options
author | Manivannan Sadhasivam <[email protected]> | 2021-03-02 18:57:57 +0530 |
---|---|---|
committer | Miquel Raynal <[email protected]> | 2021-03-11 09:37:30 +0100 |
commit | 55fbb9ba4f06cb6aff32daca1e1910173c13ec51 (patch) | |
tree | f8842d2418cc31dda7a5beaf20470d66b4606182 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 08608adb520e51403be7592c2214846fa440a23a (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 <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions