serial: cpm_uart: Use get_baudrate() instead of uart_baudrate()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 3 Aug 2023 13:56:45 +0000 (15:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Aug 2023 13:08:29 +0000 (15:08 +0200)
commitc2d6c1b4f0349a5d93ebbd8d5311fbbaf1fa54dd
treea4baff9b5c1a34a9c91419d327020ecdc52c7764
parent42ac6998ec878f640768f03ec2d753f32f51d6a4
serial: cpm_uart: Use get_baudrate() instead of uart_baudrate()

uart_baudrate() is just a trivial wrapper to get_baudrate().

Use get_baudrate() directly and remove assignment in if condition.

And also remove uart_clock() which is not used since
commit 0b2a2e5b7747 ("cpm_uart: Remove !CONFIG_PPC_CPM_NEW_BINDING
code")

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Link: https://lore.kernel.org/r/4d497386f576a3df768e44a04f9bb512e424c311.1691068700.git.christophe.leroy@csgroup.eu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/include/asm/fs_pd.h
drivers/tty/serial/cpm_uart/cpm_uart_core.c