Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47915
b: refs/heads/master
c: 7435f50
h: refs/heads/master
i:
  47913: 334a367
  47911: 2640dd5
v: v3
  • Loading branch information
Tilman Schmidt authored and Linus Torvalds committed Feb 12, 2007
1 parent 5a945de commit bc2b7ab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 163da958ba5282cbf85e8b3dc08e4f51f8b01c5e
refs/heads/master: 7435f50e1261f569c660efb4ae52e8bc21a92cbd
4 changes: 1 addition & 3 deletions trunk/drivers/isdn/gigaset/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,6 @@ struct cardstate *gigaset_initcs(struct gigaset_driver *drv, int channels,
return NULL;
}
mutex_init(&cs->mutex);
mutex_lock(&cs->mutex);

gig_dbg(DEBUG_INIT, "allocating bcs[0..%d]", channels - 1);
cs->bcs = kmalloc(channels * sizeof(struct bc_state), GFP_KERNEL);
Expand Down Expand Up @@ -738,6 +737,7 @@ struct cardstate *gigaset_initcs(struct gigaset_driver *drv, int channels,

++cs->cs_init;

/* set up character device */
gigaset_if_init(cs);

/* set up device sysfs */
Expand All @@ -753,11 +753,9 @@ struct cardstate *gigaset_initcs(struct gigaset_driver *drv, int channels,
add_timer(&cs->timer);

gig_dbg(DEBUG_INIT, "cs initialized");
mutex_unlock(&cs->mutex);
return cs;

error:
mutex_unlock(&cs->mutex);
gig_dbg(DEBUG_INIT, "failed");
gigaset_freecs(cs);
return NULL;
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/isdn/gigaset/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,8 @@ void gigaset_if_init(struct cardstate *cs)
return;

tasklet_init(&cs->if_wake_tasklet, &if_wake, (unsigned long) cs);

mutex_lock(&cs->mutex);
cs->tty_dev = tty_register_device(drv->tty, cs->minor_index, NULL);

if (!IS_ERR(cs->tty_dev))
Expand All @@ -623,6 +625,7 @@ void gigaset_if_init(struct cardstate *cs)
warn("could not register device to the tty subsystem");
cs->tty_dev = NULL;
}
mutex_unlock(&cs->mutex);
}

void gigaset_if_free(struct cardstate *cs)
Expand Down

0 comments on commit bc2b7ab

Please sign in to comment.