serial: 8250_of: Use dev_err_probe() instead of dev_warn()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 12 Sep 2023 16:56:07 +0000 (19:56 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Sep 2023 09:14:42 +0000 (11:14 +0200)
commit4678de73932f8f3b835ff3cda76825ed53d4f6b7
treeacc5c2f81ec893db2ac5d8095b32ae162c7abe49
parente8bbaeac25503aaaf215e9cc4b278890e043410b
serial: 8250_of: Use dev_err_probe() instead of dev_warn()

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/20230912165607.402580-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_of.c