]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
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 8cbb364042703abf3edcf8a4870bed1fb05f5c21..50403148d6da2a00ccf9bd7fc445b76c4d792172 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;
        }