Skip to content

Commit a1b2655

Browse files
committed
dmaengine: stm32-dma3: silently abort registration if no channel
When all channels are reserved, abort the registration silently by using dev_dbg() instead of dev_err_probe(). Change-Id: I6631597c1459ea5a08785019847f34f53c5dcc2e Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/linux-stm32/+/561954 Reviewed-by: Alain VOLMAT <alain.volmat@st.com> ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com> ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
1 parent 51b7fbd commit a1b2655

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/dma/stm32/stm32-dma3.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2275,8 +2275,9 @@ static int stm32_dma3_probe(struct platform_device *pdev)
22752275
chan_reserved = stm32_dma3_check_rif(ddata);
22762276

22772277
if (chan_reserved == GENMASK(ddata->dma_channels - 1, 0)) {
2278+
/* There is no channel available, abort registration silently */
22782279
ret = -ENODEV;
2279-
dev_err_probe(&pdev->dev, ret, "No channel available, abort registration\n");
2280+
dev_dbg(&pdev->dev, "No channel available, abort registration\n");
22802281
goto err_clk_disable;
22812282
}
22822283

0 commit comments

Comments
 (0)