Re: [PATCH] spi: spi-geni-qcom: correctly handle -EPROBE_DEFER from dma_request_chan()

From: Mark Brown
Date: Thu Jun 15 2023 - 07:06:29 EST


On Thu, Jun 15, 2023 at 11:23:17AM +0200, Neil Armstrong wrote:

> dev_dbg(mas->dev, "Using GPI DMA mode for SPI\n");
> break;
> - }
> + } else if (ret == -EPROBE_DEFER)
> + goto out_pm;
> /*
> * in case of failure to get gpi dma channel, we can still do the

Both sides of an if statement should have braces if one side does.

Attachment: signature.asc
Description: PGP signature