Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=9e22cb67d9a8acde7a5af6ed8cd5e74ebd6551b3
Commit:     9e22cb67d9a8acde7a5af6ed8cd5e74ebd6551b3
Parent:     1e838bf31c3a24596621026c7d1ca69da068af83
Author:     Dan Williams <[EMAIL PROTECTED]>
AuthorDate: Thu Aug 2 11:14:49 2007 -0400
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Wed Oct 10 16:49:41 2007 -0700

    [PATCH] libertas: remove if_bootcmd.c
    
    Move the only function in it to if_usb.c, which was its
    only user anyway.
    
    Signed-off-by: Dan Williams <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
---
 drivers/net/wireless/libertas/Makefile     |    1 -
 drivers/net/wireless/libertas/if_bootcmd.c |   40 ----------------------------
 drivers/net/wireless/libertas/if_usb.c     |   24 ++++++++++++++++
 drivers/net/wireless/libertas/if_usb.h     |    1 -
 4 files changed, 24 insertions(+), 42 deletions(-)

diff --git a/drivers/net/wireless/libertas/Makefile 
b/drivers/net/wireless/libertas/Makefile
index 32ed413..61e0d6e 100644
--- a/drivers/net/wireless/libertas/Makefile
+++ b/drivers/net/wireless/libertas/Makefile
@@ -5,7 +5,6 @@ libertas-objs := main.o fw.o wext.o \
                debugfs.o         \
                ethtool.o assoc.o
 
-usb8xxx-objs += if_bootcmd.o
 usb8xxx-objs += if_usb.o
 
 obj-$(CONFIG_LIBERTAS)     += libertas.o
diff --git a/drivers/net/wireless/libertas/if_bootcmd.c 
b/drivers/net/wireless/libertas/if_bootcmd.c
deleted file mode 100644
index 8bca306..0000000
--- a/drivers/net/wireless/libertas/if_bootcmd.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
-  * This file contains functions used in USB Boot command
-  * and Boot2/FW update
-  */
-
-#include <linux/delay.h>
-#include <linux/firmware.h>
-#include <linux/netdevice.h>
-#include <linux/usb.h>
-
-#define DRV_NAME "usb8xxx"
-
-#include "defs.h"
-#include "dev.h"
-#include "if_usb.h"
-
-/**
- *  @brief This function issues Boot command to the Boot2 code
- *  @param ivalue   1:Boot from FW by USB-Download
- *                  2:Boot from FW in EEPROM
- *  @return            0
- */
-int if_usb_issue_boot_command(wlan_private *priv, int ivalue)
-{
-       struct usb_card_rec     *cardp = priv->card;
-       struct bootcmdstr       sbootcmd;
-       int i;
-
-       /* Prepare command */
-       sbootcmd.u32magicnumber = cpu_to_le32(BOOT_CMD_MAGIC_NUMBER);
-       sbootcmd.u8cmd_tag = ivalue;
-       for (i=0; i<11; i++)
-               sbootcmd.au8dumy[i]=0x00;
-       memcpy(cardp->bulk_out_buffer, &sbootcmd, sizeof(struct bootcmdstr));
-
-       /* Issue command */
-       usb_tx_block(priv, cardp->bulk_out_buffer, sizeof(struct bootcmdstr));
-
-       return 0;
-}
diff --git a/drivers/net/wireless/libertas/if_usb.c 
b/drivers/net/wireless/libertas/if_usb.c
index 9983175..11687b8 100644
--- a/drivers/net/wireless/libertas/if_usb.c
+++ b/drivers/net/wireless/libertas/if_usb.c
@@ -803,6 +803,30 @@ static int if_usb_register_dev(wlan_private * priv)
        return 0;
 }
 
+/**
+ *  @brief This function issues Boot command to the Boot2 code
+ *  @param ivalue   1:Boot from FW by USB-Download
+ *                  2:Boot from FW in EEPROM
+ *  @return            0
+ */
+static int if_usb_issue_boot_command(wlan_private *priv, int ivalue)
+{
+       struct usb_card_rec     *cardp = priv->card;
+       struct bootcmdstr       sbootcmd;
+       int i;
+
+       /* Prepare command */
+       sbootcmd.u32magicnumber = cpu_to_le32(BOOT_CMD_MAGIC_NUMBER);
+       sbootcmd.u8cmd_tag = ivalue;
+       for (i=0; i<11; i++)
+               sbootcmd.au8dumy[i]=0x00;
+       memcpy(cardp->bulk_out_buffer, &sbootcmd, sizeof(struct bootcmdstr));
+
+       /* Issue command */
+       usb_tx_block(priv, cardp->bulk_out_buffer, sizeof(struct bootcmdstr));
+
+       return 0;
+}
 
 
 static int if_usb_prog_firmware(wlan_private * priv)
diff --git a/drivers/net/wireless/libertas/if_usb.h 
b/drivers/net/wireless/libertas/if_usb.h
index 156bb48..5da8c94 100644
--- a/drivers/net/wireless/libertas/if_usb.h
+++ b/drivers/net/wireless/libertas/if_usb.h
@@ -104,6 +104,5 @@ struct fwsyncheader {
 
 int usb_tx_block(wlan_private *priv, u8 *payload, u16 nb);
 void if_usb_free(struct usb_card_rec *cardp);
-int if_usb_issue_boot_command(wlan_private *priv, int ivalue);
 
 #endif
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to