summaryrefslogtreecommitdiff
path: root/drivers/staging/sbe-2t3e3/2t3e3.h
diff options
context:
space:
mode:
authorDevendra Naga <devendra.aaru@gmail.com>2012-09-19 05:16:08 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-21 08:57:56 -0700
commita00979cccb9cc9727b8357f8fdf1c1924c9b73ef (patch)
treecc6c848ae195b599b9bc3489599792aa76f0c38f /drivers/staging/sbe-2t3e3/2t3e3.h
parentbae95b09076abeecd193a8efbc34c00f4309d3f6 (diff)
staging: sbe-2t3e3: use -ve error return codes in dc_init_descriptor_list
the dc_init_descriptor_list actually returns a +ve error return codes, which is abnormal as other functions in kernel return -ve error codes on failure. so replace the return codes of this function with -ve values to make the consistency with the other functions in kernel. Also make the dc_init_descriptor_list static as its never called anywhere except in this file and move the function prototype from the headerfile into the c file as its referred only in this c file. Signed-off-by: Devendra Naga <devendra.aaru@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/sbe-2t3e3/2t3e3.h')
-rw-r--r--drivers/staging/sbe-2t3e3/2t3e3.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/sbe-2t3e3/2t3e3.h b/drivers/staging/sbe-2t3e3/2t3e3.h
index 383f2cfc1ad2..ccad049c1122 100644
--- a/drivers/staging/sbe-2t3e3/2t3e3.h
+++ b/drivers/staging/sbe-2t3e3/2t3e3.h
@@ -789,7 +789,6 @@ void dc_restart(struct channel *);
void dc_receiver_onoff(struct channel *, u32);
void dc_transmitter_onoff(struct channel *, u32);
void dc_set_loopback(struct channel *, u32);
-u32 dc_init_descriptor_list(struct channel *);
void dc_clear_descriptor_list(struct channel *);
void dc_drop_descriptor_list(struct channel *);
void dc_set_output_port(struct channel *);