mtd: rawnand: fsmc: Fix error code in fsmc_nand_probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 15 Feb 2021 15:58:49 +0000 (18:58 +0300)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 11 Mar 2021 08:37:29 +0000 (09:37 +0100)
commite7a97528e3c787802d8c643d6ab2f428511bb047
treeecb6e99bc01ec068f960a6e977d80876995880a6
parent469b992489852b500d39048aa0013639dfe9f2e6
mtd: rawnand: fsmc: Fix error code in fsmc_nand_probe()

If dma_request_channel() fails then the probe fails and it should
return a negative error code, but currently it returns success.

fixes: 4774fb0a48aa ("mtd: nand/fsmc: Add DMA support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/YCqaOZ83OvPOzLwh@mwanda
drivers/mtd/nand/raw/fsmc_nand.c