serial: fsl_lpuart: Use dev_info() instead of printk()
authorFabio Estevam <festevam@gmail.com>
Tue, 4 Jun 2019 03:31:38 +0000 (00:31 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Jun 2019 17:12:09 +0000 (19:12 +0200)
dev_info() is more appropriate for printing messages inside drivers, so
switch to dev_info().

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c

index ea1c85e..08b52cc 100644 (file)
@@ -2078,7 +2078,7 @@ lpuart_console_get_options(struct lpuart_port *sport, int *baud,
        baud_raw = uartclk / (16 * (sbr + brfa / 32));
 
        if (*baud != baud_raw)
-               printk(KERN_INFO "Serial: Console lpuart rounded baud rate"
+               dev_info(sport->port.dev, "Serial: Console lpuart rounded baud rate"
                                "from %d to %d\n", baud_raw, *baud);
 }
 
@@ -2121,7 +2121,7 @@ lpuart32_console_get_options(struct lpuart_port *sport, int *baud,
        baud_raw = uartclk / (16 * sbr);
 
        if (*baud != baud_raw)
-               printk(KERN_INFO "Serial: Console lpuart rounded baud rate"
+               dev_info(sport->port.dev, "Serial: Console lpuart rounded baud rate"
                                "from %d to %d\n", baud_raw, *baud);
 }