aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/crystalhd/crystalhd_cmds.c
diff options
context:
space:
mode:
authorAmeya Palande <2ameya@gmail.com>2010-02-24 20:18:28 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2010-03-03 16:43:04 -0800
commit21b0838c1a03686277e0cfeda42015e4538b9ea3 (patch)
tree7bf4aa8b54e5105298979d27d780f9294a90fe99 /drivers/staging/crystalhd/crystalhd_cmds.c
parent092579690107ffdf9b146de7e67379d8434e9bb0 (diff)
Staging: crystalhd: Misc improvements for crystalhd_lnx.c
This patch does following improvements: 1. Follow kernel style for comments 2. Reorganize code for readability improvement 3. Use PCI helper macros 4. Use __devinit, __devexit, __devexit_p at necessary places 5. Mark functions and data as static when it is not exported Signed-off-by: Ameya Palande <2ameya@gmail.com> Cc: Naren Sankar <nsankar@broadcom.com> Cc: Jarod Wilson <jarod@wilsonet.com> Cc: Scott Davilla <davilla@4pi.com> Cc: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/crystalhd/crystalhd_cmds.c')
-rw-r--r--drivers/staging/crystalhd/crystalhd_cmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/crystalhd/crystalhd_cmds.c b/drivers/staging/crystalhd/crystalhd_cmds.c
index 39c641d6b67..26145a8d0f7 100644
--- a/drivers/staging/crystalhd/crystalhd_cmds.c
+++ b/drivers/staging/crystalhd/crystalhd_cmds.c
@@ -948,7 +948,7 @@ BC_STATUS crystalhd_user_close(struct crystalhd_cmd *ctx, struct crystalhd_user
*
* Called at the time of driver load.
*/
-BC_STATUS crystalhd_setup_cmd_context(struct crystalhd_cmd *ctx,
+BC_STATUS __devinit crystalhd_setup_cmd_context(struct crystalhd_cmd *ctx,
struct crystalhd_adp *adp)
{
int i = 0;
@@ -983,7 +983,7 @@ BC_STATUS crystalhd_setup_cmd_context(struct crystalhd_cmd *ctx,
*
* Called at the time of driver un-load.
*/
-BC_STATUS crystalhd_delete_cmd_context(struct crystalhd_cmd *ctx)
+BC_STATUS __devexit crystalhd_delete_cmd_context(struct crystalhd_cmd *ctx)
{
BCMLOG(BCMLOG_DBG, "Deleting Command context..\n");