aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/gigaset/interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/isdn/gigaset/interface.c')
-rw-r--r--drivers/isdn/gigaset/interface.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/isdn/gigaset/interface.c b/drivers/isdn/gigaset/interface.c
index f13de20947e0..eb50f3dab5f7 100644
--- a/drivers/isdn/gigaset/interface.c
+++ b/drivers/isdn/gigaset/interface.c
@@ -615,6 +615,8 @@ void gigaset_if_init(struct cardstate *cs)
615 return; 615 return;
616 616
617 tasklet_init(&cs->if_wake_tasklet, &if_wake, (unsigned long) cs); 617 tasklet_init(&cs->if_wake_tasklet, &if_wake, (unsigned long) cs);
618
619 mutex_lock(&cs->mutex);
618 cs->tty_dev = tty_register_device(drv->tty, cs->minor_index, NULL); 620 cs->tty_dev = tty_register_device(drv->tty, cs->minor_index, NULL);
619 621
620 if (!IS_ERR(cs->tty_dev)) 622 if (!IS_ERR(cs->tty_dev))
@@ -623,6 +625,7 @@ void gigaset_if_init(struct cardstate *cs)
623 warn("could not register device to the tty subsystem"); 625 warn("could not register device to the tty subsystem");
624 cs->tty_dev = NULL; 626 cs->tty_dev = NULL;
625 } 627 }
628 mutex_unlock(&cs->mutex);
626} 629}
627 630
628void gigaset_if_free(struct cardstate *cs) 631void gigaset_if_free(struct cardstate *cs)