tty: serial: atmel: remove enable/disable clock due to atmel_console_setup()
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Thu, 16 Jun 2022 14:00:23 +0000 (17:00 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jun 2022 12:39:51 +0000 (14:39 +0200)
commit61dbc75ce00f4e27da61683d23cb4f9f3ef3f944
treef0b40288fb41fa864a763468539e84fbeafd13cc
parent84b476b124d4581d0c18e2e39e14fca52feedffd
tty: serial: atmel: remove enable/disable clock due to atmel_console_setup()

There is no need for clk_prepare_enable() at the beginning of
atmel_console_setup() and clk_disable_unprepare() at the end of
atmel_console_setup() as the clock is already enabled when calling
atmel_console_setup() and its disablement is done at the end
of probe.

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-4-claudiu.beznea@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.c