]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
serial_lpuart: make clock failure less verbose
authorGiulio Benetti <giulio.benetti@benettiengineering.com>
Fri, 31 Jan 2020 13:39:47 +0000 (14:39 +0100)
committerStefano Babic <sbabic@denx.de>
Mon, 9 Mar 2020 14:06:23 +0000 (15:06 +0100)
Some device may enable CONFIG_CLK but not still support this clock in
CC, so better use debug() in place of dev_warn() otherwise a lot of
boards will throw useless dev_warn()s.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/serial/serial_lpuart.c

index d7907a228fec935218ec3e005a62c52dab27d35f..3b53f5a97bbb4140a4a325e6cb3ebc07b575b48d 100644 (file)
@@ -499,7 +499,7 @@ static int lpuart_serial_probe(struct udevice *dev)
                        return ret;
                }
        } else {
-               dev_warn(dev, "Failed to get per clk: %d\n",  ret);
+               debug("%s: Failed to get per clk: %d\n", __func__, ret);
        }
 #endif