]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: atmel: use devm_clk_get()
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Thu, 16 Jun 2022 14:00:22 +0000 (17:00 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jun 2022 12:39:51 +0000 (14:39 +0200)
commitcb7a84ad9dc33e33b49ba0c404bdb83f4d568696
tree57f394cdd99228a79beb65037cfcbf50dd6c0d86
parentf9b7ae5cf13393c79b857aabf90783a0deadfa75
tty: serial: atmel: use devm_clk_get()

Use devm_clk_get() for serial clock instead of clk_get()/clk_put().
With this move the clk_get in driver's probe function.

Acked-by: Richard Genoud <richard.genoud@gmail.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20220616140024.2081238-3-claudiu.beznea@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.c