diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-07 17:39:20 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-07 17:39:20 -0500 |
commit | 56b85f32d530d09d6805488ad00775d4e0e3baab (patch) | |
tree | e7fbe69e338ef775d3b2dd822aa915d259b4bc94 /kernel/printk.c | |
parent | 3e5b08cbbf78bedd316904ab0cf3b27119433ee5 (diff) | |
parent | 568389c257fa7d74ce36c2f78bad31965fded4cf (diff) |
Merge branch 'tty-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6
* 'tty-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6: (36 commits)
serial: apbuart: Fixup apbuart_console_init()
TTY: Add tty ioctl to figure device node of the system console.
tty: add 'active' sysfs attribute to tty0 and console device
drivers: serial: apbuart: Handle OF failures gracefully
Serial: Avoid unbalanced IRQ wake disable during resume
tty: fix typos/errors in tty_driver.h comments
pch_uart : fix warnings for 64bit compile
8250: fix uninitialized FIFOs
ip2: fix compiler warning on ip2main_pci_tbl
specialix: fix compiler warning on specialix_pci_tbl
rocket: fix compiler warning on rocket_pci_ids
8250: add a UPIO_DWAPB32 for 32 bit accesses
8250: use container_of() instead of casting
serial: omap-serial: Add support for kernel debugger
serial: fix pch_uart kconfig & build
drivers: char: hvc: add arm JTAG DCC console support
RS485 documentation: add 16C950 UART description
serial: ifx6x60: fix memory leak
serial: ifx6x60: free IRQ on error
Serial: EG20T: add PCH_UART driver
...
Fixed up conflicts in drivers/serial/apbuart.c with evil merge that
makes the code look fairly sane (unlike either side).
Diffstat (limited to 'kernel/printk.c')
-rw-r--r-- | kernel/printk.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/kernel/printk.c b/kernel/printk.c index ab3ffc5b3b64..4642a5c439eb 100644 --- a/kernel/printk.c +++ b/kernel/printk.c | |||
@@ -43,12 +43,6 @@ | |||
43 | #include <asm/uaccess.h> | 43 | #include <asm/uaccess.h> |
44 | 44 | ||
45 | /* | 45 | /* |
46 | * for_each_console() allows you to iterate on each console | ||
47 | */ | ||
48 | #define for_each_console(con) \ | ||
49 | for (con = console_drivers; con != NULL; con = con->next) | ||
50 | |||
51 | /* | ||
52 | * Architectures can override it: | 46 | * Architectures can override it: |
53 | */ | 47 | */ |
54 | void asmlinkage __attribute__((weak)) early_printk(const char *fmt, ...) | 48 | void asmlinkage __attribute__((weak)) early_printk(const char *fmt, ...) |
@@ -1359,6 +1353,7 @@ void register_console(struct console *newcon) | |||
1359 | spin_unlock_irqrestore(&logbuf_lock, flags); | 1353 | spin_unlock_irqrestore(&logbuf_lock, flags); |
1360 | } | 1354 | } |
1361 | release_console_sem(); | 1355 | release_console_sem(); |
1356 | console_sysfs_notify(); | ||
1362 | 1357 | ||
1363 | /* | 1358 | /* |
1364 | * By unregistering the bootconsoles after we enable the real console | 1359 | * By unregistering the bootconsoles after we enable the real console |
@@ -1417,6 +1412,7 @@ int unregister_console(struct console *console) | |||
1417 | console_drivers->flags |= CON_CONSDEV; | 1412 | console_drivers->flags |= CON_CONSDEV; |
1418 | 1413 | ||
1419 | release_console_sem(); | 1414 | release_console_sem(); |
1415 | console_sysfs_notify(); | ||
1420 | return res; | 1416 | return res; |
1421 | } | 1417 | } |
1422 | EXPORT_SYMBOL(unregister_console); | 1418 | EXPORT_SYMBOL(unregister_console); |