Skip to content

Commit

Permalink
serial: fsl_lpuart: Use dev_info() instead of printk()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Fabio Estevam authored and Greg Kroah-Hartman committed Jun 10, 2019
1 parent 9315ad9 commit 9edaf50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/tty/serial/fsl_lpuart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 9edaf50

Please sign in to comment.