diff options
author | Tilman Schmidt <tilman@imap.cc> | 2010-09-30 09:35:01 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-01 03:33:34 -0400 |
commit | befba36ab942c44ba1d3761a7439324fff83638f (patch) | |
tree | 2de2645b6351da2338fa1fd550c2d24c03a02c70 /drivers/isdn | |
parent | f3d531b99fb30945b4a64d6e2e86e1e62605aca5 (diff) |
isdn/gigaset: drop obsolete debug option
Remove the debug flag DEBUG_DRIVER and associated code.
It doesn't serve any useful purpose anymore.
Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn')
-rw-r--r-- | drivers/isdn/gigaset/common.c | 26 | ||||
-rw-r--r-- | drivers/isdn/gigaset/gigaset.h | 3 | ||||
-rw-r--r-- | drivers/isdn/gigaset/i4l.c | 2 |
3 files changed, 1 insertions, 30 deletions
diff --git a/drivers/isdn/gigaset/common.c b/drivers/isdn/gigaset/common.c index 3ca561eccd9f..db621db67f61 100644 --- a/drivers/isdn/gigaset/common.c +++ b/drivers/isdn/gigaset/common.c | |||
@@ -1026,32 +1026,6 @@ struct cardstate *gigaset_get_cs_by_id(int id) | |||
1026 | return ret; | 1026 | return ret; |
1027 | } | 1027 | } |
1028 | 1028 | ||
1029 | void gigaset_debugdrivers(void) | ||
1030 | { | ||
1031 | unsigned long flags; | ||
1032 | static struct cardstate *cs; | ||
1033 | struct gigaset_driver *drv; | ||
1034 | unsigned i; | ||
1035 | |||
1036 | spin_lock_irqsave(&driver_lock, flags); | ||
1037 | list_for_each_entry(drv, &drivers, list) { | ||
1038 | gig_dbg(DEBUG_DRIVER, "driver %p", drv); | ||
1039 | spin_lock(&drv->lock); | ||
1040 | for (i = 0; i < drv->minors; ++i) { | ||
1041 | gig_dbg(DEBUG_DRIVER, " index %u", i); | ||
1042 | cs = drv->cs + i; | ||
1043 | gig_dbg(DEBUG_DRIVER, " cardstate %p", cs); | ||
1044 | gig_dbg(DEBUG_DRIVER, " flags 0x%02x", cs->flags); | ||
1045 | gig_dbg(DEBUG_DRIVER, " minor_index %u", | ||
1046 | cs->minor_index); | ||
1047 | gig_dbg(DEBUG_DRIVER, " driver %p", cs->driver); | ||
1048 | gig_dbg(DEBUG_DRIVER, " i4l id %d", cs->myid); | ||
1049 | } | ||
1050 | spin_unlock(&drv->lock); | ||
1051 | } | ||
1052 | spin_unlock_irqrestore(&driver_lock, flags); | ||
1053 | } | ||
1054 | |||
1055 | static struct cardstate *gigaset_get_cs_by_minor(unsigned minor) | 1029 | static struct cardstate *gigaset_get_cs_by_minor(unsigned minor) |
1056 | { | 1030 | { |
1057 | unsigned long flags; | 1031 | unsigned long flags; |
diff --git a/drivers/isdn/gigaset/gigaset.h b/drivers/isdn/gigaset/gigaset.h index a69512fb1195..6dd360734cfd 100644 --- a/drivers/isdn/gigaset/gigaset.h +++ b/drivers/isdn/gigaset/gigaset.h | |||
@@ -70,7 +70,6 @@ enum debuglevel { | |||
70 | DEBUG_STREAM_DUMP = 0x00080, /* application data stream content */ | 70 | DEBUG_STREAM_DUMP = 0x00080, /* application data stream content */ |
71 | DEBUG_LLDATA = 0x00100, /* sent/received LL data */ | 71 | DEBUG_LLDATA = 0x00100, /* sent/received LL data */ |
72 | DEBUG_EVENT = 0x00200, /* event processing */ | 72 | DEBUG_EVENT = 0x00200, /* event processing */ |
73 | DEBUG_DRIVER = 0x00400, /* driver structure */ | ||
74 | DEBUG_HDLC = 0x00800, /* M10x HDLC processing */ | 73 | DEBUG_HDLC = 0x00800, /* M10x HDLC processing */ |
75 | DEBUG_CHANNEL = 0x01000, /* channel allocation/deallocation */ | 74 | DEBUG_CHANNEL = 0x01000, /* channel allocation/deallocation */ |
76 | DEBUG_TRANSCMD = 0x02000, /* AT-COMMANDS+RESPONSES */ | 75 | DEBUG_TRANSCMD = 0x02000, /* AT-COMMANDS+RESPONSES */ |
@@ -727,7 +726,7 @@ struct gigaset_driver *gigaset_initdriver(unsigned minor, unsigned minors, | |||
727 | 726 | ||
728 | /* Deallocate driver structure. */ | 727 | /* Deallocate driver structure. */ |
729 | void gigaset_freedriver(struct gigaset_driver *drv); | 728 | void gigaset_freedriver(struct gigaset_driver *drv); |
730 | void gigaset_debugdrivers(void); | 729 | |
731 | struct cardstate *gigaset_get_cs_by_tty(struct tty_struct *tty); | 730 | struct cardstate *gigaset_get_cs_by_tty(struct tty_struct *tty); |
732 | struct cardstate *gigaset_get_cs_by_id(int id); | 731 | struct cardstate *gigaset_get_cs_by_id(int id); |
733 | void gigaset_blockdriver(struct gigaset_driver *drv); | 732 | void gigaset_blockdriver(struct gigaset_driver *drv); |
diff --git a/drivers/isdn/gigaset/i4l.c b/drivers/isdn/gigaset/i4l.c index 34bca37d65b9..9bec8b969964 100644 --- a/drivers/isdn/gigaset/i4l.c +++ b/drivers/isdn/gigaset/i4l.c | |||
@@ -201,8 +201,6 @@ static int command_from_LL(isdn_ctrl *cntrl) | |||
201 | int i; | 201 | int i; |
202 | size_t l; | 202 | size_t l; |
203 | 203 | ||
204 | gigaset_debugdrivers(); | ||
205 | |||
206 | gig_dbg(DEBUG_CMD, "driver: %d, command: %d, arg: 0x%lx", | 204 | gig_dbg(DEBUG_CMD, "driver: %d, command: %d, arg: 0x%lx", |
207 | cntrl->driver, cntrl->command, cntrl->arg); | 205 | cntrl->driver, cntrl->command, cntrl->arg); |
208 | 206 | ||