serial: 8250_aspeed_vuart: Use dev_err_probe() instead of dev_err()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 12 Sep 2023 16:55:40 +0000 (19:55 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Sep 2023 09:14:42 +0000 (11:14 +0200)
commite8bbaeac25503aaaf215e9cc4b278890e043410b
tree7f5f2a75270a1bc4c29d06a25351ec86a7efd778
parent2ff477b78250186e611e008320e1de20107e9617
serial: 8250_aspeed_vuart: Use dev_err_probe() instead of dev_err()

The probe process may generate EPROBE_DEFER. In this case
dev_err_probe() can still record err information. Otherwise
it may pollute logs on that occasion.

This also helps simplifing code and standardizing the error output.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230912165540.402504-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_aspeed_vuart.c