Skip to content

Commit

Permalink
drivers: tty: serial: timbuart: use dev_err() instead of printk()
Browse files Browse the repository at this point in the history
Using dev_err() instead of printk() for more consistent output.
(prints device name, etc).

Signed-off-by: Enrico Weigelt <[email protected]>
  • Loading branch information
metux committed Jan 10, 2020
1 parent fabb06f commit 7f8762f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/tty/serial/timbuart.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,7 @@ static int timbuart_probe(struct platform_device *dev)
err_register:
kfree(uart);
err_mem:
printk(KERN_ERR "timberdale: Failed to register Timberdale UART: %d\n",
err);
dev_err(&dev->dev, "Failed to register Timberdale UART: %d\n", err);

return err;
}
Expand Down

0 comments on commit 7f8762f

Please sign in to comment.