aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/gigaset/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/isdn/gigaset/common.c')
-rw-r--r--drivers/isdn/gigaset/common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/isdn/gigaset/common.c b/drivers/isdn/gigaset/common.c
index fb5cf703133f..2ea4976aa02a 100644
--- a/drivers/isdn/gigaset/common.c
+++ b/drivers/isdn/gigaset/common.c
@@ -833,6 +833,9 @@ int gigaset_start(struct cardstate *cs)
833 833
834 wait_event(cs->waitqueue, !cs->waiting); 834 wait_event(cs->waitqueue, !cs->waiting);
835 835
836 /* set up device sysfs */
837 gigaset_init_dev_sysfs(cs);
838
836 up(&cs->sem); 839 up(&cs->sem);
837 return 1; 840 return 1;
838 841
@@ -882,6 +885,9 @@ void gigaset_stop(struct cardstate *cs)
882{ 885{
883 down(&cs->sem); 886 down(&cs->sem);
884 887
888 /* clear device sysfs */
889 gigaset_free_dev_sysfs(cs);
890
885 atomic_set(&cs->connected, 0); 891 atomic_set(&cs->connected, 0);
886 892
887 cs->waiting = 1; 893 cs->waiting = 1;