serial: 8250_dw: Use devm_clk_get_optional_enabled()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 19 Sep 2023 19:55:13 +0000 (22:55 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Oct 2023 12:35:38 +0000 (14:35 +0200)
commit70a0d499db058b517bf60ec2e954a9a6bb688daa
treee4ddd7caf4c741707a366ddecac3255c4d017745
parentaef6b8631f9ddf22e9f331608ecc1573943c3c81
serial: 8250_dw: Use devm_clk_get_optional_enabled()

Use devm_clk_get_optional_enabled() to simplify the code.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20230919195513.3197930-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_dw.c