]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0e24d53e47b7f95dc2f99a72f00129ec0fd387ec
treebccf68b5b40c0301eeb6ddef4bcf8c720d5f781c
parentd7f47e9018ac9d58dea39e6225bd9cb306be287b
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