diff options
| author | Sergiu Moga <[email protected]> | 2022-09-26 14:32:45 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-09-30 12:38:40 +0000 |
| commit | 468cdabe93c5fa969de65752e38c31f07a5e048d (patch) | |
| tree | c92d2a52abee930a92a9113806754343edb727a3 /drivers/tty/serial/sccnxp.c | |
| parent | serial: 8250: Fix restoring termios speed after suspend (diff) | |
| download | kernel-468cdabe93c5fa969de65752e38c31f07a5e048d.tar.gz kernel-468cdabe93c5fa969de65752e38c31f07a5e048d.zip | |
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: 5e3ce1f26129 ("tty: serial: atmel: Make the driver aware of the existence of GCLK")
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Sergiu Moga <[email protected]>
Acked-by: Nicolas Ferre <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/tty/serial/sccnxp.c')
0 files changed, 0 insertions, 0 deletions
