Skip to content

Commit fa70045

Browse files
Heikki Krogerusgregkh
authored andcommitted
serial: 8250_mid: Add missing dependency
8250_mid uses rational_best_approximation() function, so the driver needs to select CONFIG_RATIONAL option. This fixes build error when CONFIG_RATIONAL is not enabled: drivers/built-in.o: In function `mid8250_set_termios': 8250_mid.c:(.text+0x10169a): undefined reference to `rational_best_approximation' Reported-by: Randy Dunlap <[email protected]> Signed-off-by: Heikki Krogerus <[email protected]> Acked-by: Andy Shevchenko <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 6b2a3d6 commit fa70045

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/tty/serial/8250/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ config SERIAL_8250_MID
373373
depends on SERIAL_8250 && PCI
374374
select HSU_DMA if SERIAL_8250_DMA
375375
select HSU_DMA_PCI if X86_INTEL_MID
376+
select RATIONAL
376377
help
377378
Selecting this option will enable handling of the extra features
378379
present on the UART found on Intel Medfield SOC and various other

0 commit comments

Comments
 (0)