diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-18 19:57:53 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-18 19:57:53 -0400 |
commit | 575a2929815bca197983a22fe6d072534d219be4 (patch) | |
tree | 77960b02f5ff4c43c29152119f82658c9bbd0b2d /drivers/char | |
parent | 7e55f81ecf592d269b9430d9c06db509fc3f19f9 (diff) | |
parent | 12de375ec493ab1767d4a07dde823e63ae5edc21 (diff) |
Merge tag 'tty-3.15-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty
Pull tty/serial driver fixes from Greg KH:
"Here are a number of small tty/serial driver fixes for 3.15-rc2. Also
in here are some Documentation file removals for drivers that we
removed a long time ago, no need to keep it around any longer.
All of these have been in linux-next for a bit"
* tag 'tty-3.15-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
Revert "serial: 8250, disable "too much work" messages"
serial: amba-pl011: fix regression, causing an Oops on rmmod
tty: Fix help text of SYNCLINK_CS
tty: fix memleak in alloc_pid
ttyprintk: Allow built as a module
ttyprintk: Fix wrong tty_unregister_driver() call in the error path
serial: 8250, disable "too much work" messages
Documentation/serial: Delete obsolete driver documentation
serial: omap: Fix missing pm_runtime_resume handling by simplifying code
serial_core: Fix pm imbalance on unbind
serial: pl011: change Rx burst size to half of trigger level
serial: timberdale: Depend on X86_32
serial: st-asc: Fix SysRq char handling
Revert "serial: clps711x: Give a chance to perform useful tasks during wait loop"
serial_core: Fix conditional start_tx on ring buffer not empty
serial: efm32: use $vendor,$device scheme for compatible string
serial: omap: free the wakeup settings in remove
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/Kconfig | 2 | ||||
-rw-r--r-- | drivers/char/pcmcia/Kconfig | 2 | ||||
-rw-r--r-- | drivers/char/ttyprintk.c | 15 |
3 files changed, 14 insertions, 5 deletions
diff --git a/drivers/char/Kconfig b/drivers/char/Kconfig index fbae63e3d304..6e9f74a5c095 100644 --- a/drivers/char/Kconfig +++ b/drivers/char/Kconfig | |||
@@ -40,7 +40,7 @@ config SGI_MBCS | |||
40 | source "drivers/tty/serial/Kconfig" | 40 | source "drivers/tty/serial/Kconfig" |
41 | 41 | ||
42 | config TTY_PRINTK | 42 | config TTY_PRINTK |
43 | bool "TTY driver to output user messages via printk" | 43 | tristate "TTY driver to output user messages via printk" |
44 | depends on EXPERT && TTY | 44 | depends on EXPERT && TTY |
45 | default n | 45 | default n |
46 | ---help--- | 46 | ---help--- |
diff --git a/drivers/char/pcmcia/Kconfig b/drivers/char/pcmcia/Kconfig index b27f5342fe76..8d3dfb0c8a26 100644 --- a/drivers/char/pcmcia/Kconfig +++ b/drivers/char/pcmcia/Kconfig | |||
@@ -15,7 +15,7 @@ config SYNCLINK_CS | |||
15 | 15 | ||
16 | This driver may be built as a module ( = code which can be | 16 | This driver may be built as a module ( = code which can be |
17 | inserted in and removed from the running kernel whenever you want). | 17 | inserted in and removed from the running kernel whenever you want). |
18 | The module will be called synclinkmp. If you want to do that, say M | 18 | The module will be called synclink_cs. If you want to do that, say M |
19 | here. | 19 | here. |
20 | 20 | ||
21 | config CARDMAN_4000 | 21 | config CARDMAN_4000 |
diff --git a/drivers/char/ttyprintk.c b/drivers/char/ttyprintk.c index daea84c41743..a15ce4ef39cd 100644 --- a/drivers/char/ttyprintk.c +++ b/drivers/char/ttyprintk.c | |||
@@ -17,7 +17,7 @@ | |||
17 | #include <linux/device.h> | 17 | #include <linux/device.h> |
18 | #include <linux/serial.h> | 18 | #include <linux/serial.h> |
19 | #include <linux/tty.h> | 19 | #include <linux/tty.h> |
20 | #include <linux/export.h> | 20 | #include <linux/module.h> |
21 | 21 | ||
22 | struct ttyprintk_port { | 22 | struct ttyprintk_port { |
23 | struct tty_port port; | 23 | struct tty_port port; |
@@ -210,10 +210,19 @@ static int __init ttyprintk_init(void) | |||
210 | return 0; | 210 | return 0; |
211 | 211 | ||
212 | error: | 212 | error: |
213 | tty_unregister_driver(ttyprintk_driver); | ||
214 | put_tty_driver(ttyprintk_driver); | 213 | put_tty_driver(ttyprintk_driver); |
215 | tty_port_destroy(&tpk_port.port); | 214 | tty_port_destroy(&tpk_port.port); |
216 | ttyprintk_driver = NULL; | ||
217 | return ret; | 215 | return ret; |
218 | } | 216 | } |
217 | |||
218 | static void __exit ttyprintk_exit(void) | ||
219 | { | ||
220 | tty_unregister_driver(ttyprintk_driver); | ||
221 | put_tty_driver(ttyprintk_driver); | ||
222 | tty_port_destroy(&tpk_port.port); | ||
223 | } | ||
224 | |||
219 | device_initcall(ttyprintk_init); | 225 | device_initcall(ttyprintk_init); |
226 | module_exit(ttyprintk_exit); | ||
227 | |||
228 | MODULE_LICENSE("GPL"); | ||