History

serial: of-serial: compile correctly when 8250 driver is compiled as module

If the 8250 driver is compiled as a module then CONFIG_SERIAL_8250_MODULE is defined and not CONFIG_SERIAL_8250. This results in all those code sections that require CONFIG_SERIAL_8250 to be defined are not included. This patch fixes the situation and allows 8250 and of-serial to be compiled as a module with the same functionality as when compiled into the kernel.

Martin Sperl committed 11 years ago

Commit ed4492f1 parent d144aff1 file · +4 −0Browse files

Unified · Split

drivers/tty/serial/of_serial.c+4−0
@@ -21,6 +21,10 @@ · 20 unmodified lines
2121 #include <linux/nwpserial.h>
2222 #include <linux/clk.h>
2323
24+#ifdef CONFIG_SERIAL_8250_MODULE
25+#define CONFIG_SERIAL_8250 CONFIG_SERIAL_8250_MODULE
26+#endif
27+
2428 #include "8250/8250.h"
2529
2630 struct of_serial_info {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t