diff options
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); |