[PATCH] uml: Add static initializations and declarations
[linux-2.6.git] / arch / um / drivers / line.c
index 9af55ece198d3671f528da7ab6dd89350b24b98f..1c2cc5d48bbbe315cbc2257faae2e33df2065659 100644 (file)
@@ -668,19 +668,18 @@ struct tty_driver *line_register_devfs(struct lines *set,
        return driver;
 }
 
-static spinlock_t winch_handler_lock;
-LIST_HEAD(winch_handlers);
+static DEFINE_SPINLOCK(winch_handler_lock);
+static LIST_HEAD(winch_handlers);
 
 void lines_init(struct line *lines, int nlines)
 {
        struct line *line;
        int i;
 
-       spin_lock_init(&winch_handler_lock);
        for(i = 0; i < nlines; i++){
                line = &lines[i];
                INIT_LIST_HEAD(&line->chan_list);
-               spin_lock_init(&line->lock);
+
                if(line->init_str == NULL)
                        continue;