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

Slightly simplify ->probe() and drop a few goto labels by using
devm_add_action_or_reset() for clock and reset cleanup.

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