Commit 58ad60bbb2abada33fbeae88943ab038e2fcc0ef

Authored by Wei Yongjun
Committed by Mark Brown
1 parent 72919f3402

mxs/spi: fix error return code in mxs_spi_probe()

Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/spi/spi-mxs.c
... ... @@ -612,6 +612,7 @@
612 612 ssp->dmach = dma_request_channel(mask, mxs_ssp_dma_filter, ssp);
613 613 if (!ssp->dmach) {
614 614 dev_err(ssp->dev, "Failed to request DMA\n");
  615 + ret = -ENODEV;
615 616 goto out_master_free;
616 617 }
617 618