]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: atmel: Add COMMON_CLK dependency to SERIAL_ATMEL
authorSergiu Moga <sergiu.moga@microchip.com>
Mon, 26 Sep 2022 14:32:45 +0000 (17:32 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Sep 2022 12:38:40 +0000 (14:38 +0200)
commita98c13a31a4fe8a64776aceb9519ec1e0211a956
treec92d2a52abee930a92a9113806754343edb727a3
parent85e4f797c775c349074c6fea170e9298d3b369cf
tty: serial: atmel: Add COMMON_CLK dependency to SERIAL_ATMEL

Now that the driver makes use of `__clk_is_enabled()` in order to
know whether a `clk_disable_unprepare()` is needed or not on the
GCLK, a new dependency has been introduced: COMMON_CLK. If this
`CONFIG_COMMON_CLK` is not enabled, whatever config may have this
driver enabled without COMMON_CLK then an undefined reference to
`__clk_is_enabled()` will be issued by the linker.

Thus, make sure that, unless `CONFIG_COMMON_CLK` is enabled, this
driver is not compiled.

Fixes: 54b409cb4036 ("tty: serial: atmel: Make the driver aware of the existence of GCLK")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Sergiu Moga <sergiu.moga@microchip.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Link: https://lore.kernel.org/r/20220926143244.485578-1-sergiu.moga@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/Kconfig