diff options
Diffstat (limited to 'arch/parisc')
-rw-r--r-- | arch/parisc/include/asm/ioctls.h | 1 | ||||
-rw-r--r-- | arch/parisc/kernel/pdc_cons.c | 8 |
2 files changed, 5 insertions, 4 deletions
diff --git a/arch/parisc/include/asm/ioctls.h b/arch/parisc/include/asm/ioctls.h index 4e0614456bea..6ba80d03623a 100644 --- a/arch/parisc/include/asm/ioctls.h +++ b/arch/parisc/include/asm/ioctls.h | |||
@@ -52,6 +52,7 @@ | |||
52 | #define TCSETSF2 _IOW('T',0x2D, struct termios2) | 52 | #define TCSETSF2 _IOW('T',0x2D, struct termios2) |
53 | #define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */ | 53 | #define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */ |
54 | #define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */ | 54 | #define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */ |
55 | #define TIOCGDEV _IOR('T',0x32, int) /* Get primary device node of /dev/console */ | ||
55 | #define TIOCSIG _IOW('T',0x36, int) /* Generate signal on Pty slave */ | 56 | #define TIOCSIG _IOW('T',0x36, int) /* Generate signal on Pty slave */ |
56 | 57 | ||
57 | #define FIONCLEX 0x5450 /* these numbers need to be adjusted. */ | 58 | #define FIONCLEX 0x5450 /* these numbers need to be adjusted. */ |
diff --git a/arch/parisc/kernel/pdc_cons.c b/arch/parisc/kernel/pdc_cons.c index 66d1f17fdb94..11bdd68e5762 100644 --- a/arch/parisc/kernel/pdc_cons.c +++ b/arch/parisc/kernel/pdc_cons.c | |||
@@ -92,8 +92,6 @@ static int pdc_console_setup(struct console *co, char *options) | |||
92 | 92 | ||
93 | static struct timer_list pdc_console_timer; | 93 | static struct timer_list pdc_console_timer; |
94 | 94 | ||
95 | extern struct console * console_drivers; | ||
96 | |||
97 | static int pdc_console_tty_open(struct tty_struct *tty, struct file *filp) | 95 | static int pdc_console_tty_open(struct tty_struct *tty, struct file *filp) |
98 | { | 96 | { |
99 | 97 | ||
@@ -169,11 +167,13 @@ static int __init pdc_console_tty_driver_init(void) | |||
169 | * It is unregistered if the pdc console was not selected as the | 167 | * It is unregistered if the pdc console was not selected as the |
170 | * primary console. */ | 168 | * primary console. */ |
171 | 169 | ||
172 | struct console *tmp = console_drivers; | 170 | struct console *tmp; |
173 | 171 | ||
174 | for (tmp = console_drivers; tmp; tmp = tmp->next) | 172 | acquire_console_sem(); |
173 | for_each_console(tmp) | ||
175 | if (tmp == &pdc_cons) | 174 | if (tmp == &pdc_cons) |
176 | break; | 175 | break; |
176 | release_console_sem(); | ||
177 | 177 | ||
178 | if (!tmp) { | 178 | if (!tmp) { |
179 | printk(KERN_INFO "PDC console driver not registered anymore, not creating %s\n", pdc_cons.name); | 179 | printk(KERN_INFO "PDC console driver not registered anymore, not creating %s\n", pdc_cons.name); |