dma: Reduce error level when DMA channel type does not exist
authorVignesh Raghavendra <vigneshr@ti.com>
Thu, 17 Sep 2020 11:23:07 +0000 (16:53 +0530)
committerStefan Roese <sr@denx.de>
Thu, 8 Oct 2020 07:04:41 +0000 (09:04 +0200)
Caller would need gracefully handle failures of dma_get_device(),
therefore reduce pr_err() to pr_debug() when DMA device is not found.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/dma/dma-uclass.c

index 8cbb364..5040314 100644 (file)
@@ -219,8 +219,8 @@ int dma_get_device(u32 transfer_type, struct udevice **devp)
        }
 
        if (!dev) {
-               pr_err("No DMA device found that supports %x type\n",
-                     transfer_type);
+               pr_debug("No DMA device found that supports %x type\n",
+                        transfer_type);
                return -EPROTONOSUPPORT;
        }