serial: pic32: simplify clk handling
authorJiri Slaby <jslaby@suse.cz>
Tue, 3 May 2022 06:31:15 +0000 (08:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 May 2022 20:39:17 +0000 (22:39 +0200)
commitbb2cff419d3253aac12e7513be2b0fd7ee11ad78
tree8c4ec847841663e2b29340490b1cdfb7e1457010
parent08f643e0224222aa089265a72690187898cac3e7
serial: pic32: simplify clk handling

struct pic32_sport::ref_clk is only set, but not read. That means we can
remove it. And when we do so, pic32_enable_clock() and
pic32_disable_clock() are simple wrappers around clk_prepare_enable()
and clk_disable_unprepare() respectively. So we can remove the former
two from the code and replace it by the latter two.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20220503063122.20957-5-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/pic32_uart.c