serdev: Simplify devm_serdev_device_open() function
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 24 Oct 2023 12:41:14 +0000 (15:41 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Oct 2023 11:04:11 +0000 (13:04 +0200)
commitddab72ea7e5be7d1ae0433fa3d399e05837008d1
treec1b9f4198669e6191512d4cf70c581a2f92995f4
parentaef0f5a1841e76fe13621edc7123076b38d458b0
serdev: Simplify devm_serdev_device_open() function

Use devm_add_action_or_reset() instead of devres_alloc() and
devres_add(), which works the same. This will simplify the
code. There is no functional changes.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20231024124115.3598090-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serdev/core.c