Skip to content

Commit 3b9c55e

Browse files
Chunyan Zhanggregkh
authored andcommitted
tty: serial: make SERIAL_SPRD depend on COMMON_CLK
kbuild-test reported an error: config: mips-randconfig-a001-20200321 ... >> drivers/tty/serial/sprd_serial.c:1175: undefined reference to `clk_set_parent' Because some mips Kconfig selects HAVE_CLK but not COMMON_CLK and no clk_set_parent implemented, so the error was exposed. So adding dependence on COMMON_CLK can fix this issue. Fixes: 7ba87cf ("tty: serial: make SERIAL_SPRD not depend on ARCH_SPRD") Reported-by: kbuild test robot <[email protected]> Signed-off-by: Chunyan Zhang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent d7c53fb commit 3b9c55e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/tty/serial/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,6 +1445,7 @@ config SERIAL_MEN_Z135
14451445
config SERIAL_SPRD
14461446
tristate "Support for Spreadtrum serial"
14471447
select SERIAL_CORE
1448+
depends on COMMON_CLK
14481449
help
14491450
This enables the driver for the Spreadtrum's serial.
14501451

0 commit comments

Comments
 (0)