serial: 8250_dw: Use dev_err_probe()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 9 May 2022 17:21:29 +0000 (20:21 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 May 2022 16:29:02 +0000 (18:29 +0200)
commit57f83e5dd6a33c4696699954784f8fee789b1d0c
tree7ccde1a26c4640a39456bd3cd83121e4bb1fe894
parent295b09128d12fb1a7a67f771cc0ae0df869eafaf
serial: 8250_dw: Use dev_err_probe()

Simplify the error path in ->probe() a bit by using dev_err_probe().

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