The devm_clk_get_enabled() helpers: - call devm_clk_get() - call clk_prepare_enable() and register what is needed in order to call clk_disable_unprepare() when needed, as a managed resource. This simplifies the code and avoids calls to clk_disable_unprepare(). Lei Liu (8): tty: 8250_ingenic: Use devm_clk_get_enabled() helpers tty: 8250_tegra: Use devm_clk_get_enabled() helpers tty: 8250_uniphier: Use devm_clk_get_enabled() helpers tty: atmel_serial: Use devm_clk_get_enabled() helpers tty: mps2-uart: Use devm_clk_get_enabled() helpers tty: owl-uart: Use devm_clk_get_enabled() helpers tty: st-asc: Use devm_clk_get_enabled() helpers tty: stm32-usart: Use devm_clk_get_enabled() helpers drivers/tty/serial/8250/8250_ingenic.c | 26 +++---------------------- drivers/tty/serial/8250/8250_tegra.c | 8 +------- drivers/tty/serial/8250/8250_uniphier.c | 8 +------- drivers/tty/serial/atmel_serial.c | 8 +------- drivers/tty/serial/mps2-uart.c | 9 +-------- drivers/tty/serial/owl-uart.c | 10 +--------- drivers/tty/serial/st-asc.c | 8 ++------ drivers/tty/serial/stm32-usart.c | 16 +-------------- 8 files changed, 11 insertions(+), 82 deletions(-) -- 2.34.1