|
@@ -58,11 +58,11 @@ struct line {
|
|
|
};
|
|
|
|
|
|
#define LINE_INIT(str, d) \
|
|
|
- { .count_lock = SPIN_LOCK_UNLOCKED, \
|
|
|
+ { .count_lock = __SPIN_LOCK_UNLOCKED((str).count_lock), \
|
|
|
.init_str = str, \
|
|
|
.init_pri = INIT_STATIC, \
|
|
|
.valid = 1, \
|
|
|
- .lock = SPIN_LOCK_UNLOCKED, \
|
|
|
+ .lock = __SPIN_LOCK_UNLOCKED((str).lock), \
|
|
|
.driver = d }
|
|
|
|
|
|
extern void line_close(struct tty_struct *tty, struct file * filp);
|