diff options
author | Tilman Schmidt <tilman@imap.cc> | 2006-04-11 01:55:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-04-11 09:18:49 -0400 |
commit | b1d47464c947f08125dc4ac4a2321ced9e2fed29 (patch) | |
tree | 6a977f4335c5a2ab734779fb52565c81eb61bb1b /drivers/isdn/gigaset/common.c | |
parent | 784d5858aac58c06608def862d73ae9a32f5ee23 (diff) |
[PATCH] isdn4linux: Siemens Gigaset drivers: sysfs usage
With Hansjoerg Lipp <hjlipp@web.de>
Correct the way the Gigaset drivers create their sysfs entries.
Signed-off-by: Hansjoerg Lipp <hjlipp@web.de>
Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Cc: Karsten Keil <kkeil@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/isdn/gigaset/common.c')
-rw-r--r-- | drivers/isdn/gigaset/common.c | 6 |
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; |