]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
w35und: remove dead code from wbusb_f.h
authorPekka Enberg <penberg@cs.helsinki.fi>
Mon, 27 Oct 2008 20:44:19 +0000 (22:44 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Jan 2009 21:51:43 +0000 (13:51 -0800)
Remove dead code from wbusb_f.h and move the WbWLanInitialize() definition to
wblinux_f.h where it arguably belongs to. As the wbusb_f.h is now empty, we can
remove it completely.

Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Acked-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/winbond/linux/wbusb.c
drivers/staging/winbond/linux/wbusb_f.h [deleted file]
drivers/staging/winbond/wbhal.c
drivers/staging/winbond/wbhal_f.h
drivers/staging/winbond/wblinux_f.h

index c1c2642f69c686ffe0ffbcf13ea0d2f461917007..eb115034498a4a5d5de16caf85b514fbffc0803d 100644 (file)
@@ -306,18 +306,6 @@ void packet_came(char *pRxBufferAddress, int PacketSize)
        ieee80211_rx_irqsafe(my_dev, skb, &rx_status);
 }
 
-unsigned char
-WbUsb_initial(phw_data_t pHwData)
-{
-       return 1;
-}
-
-
-void
-WbUsb_destroy(phw_data_t pHwData)
-{
-}
-
 static void wb35_disconnect(struct usb_interface *intf)
 {
        struct wb35_adapter * adapter = usb_get_intfdata(intf);
diff --git a/drivers/staging/winbond/linux/wbusb_f.h b/drivers/staging/winbond/linux/wbusb_f.h
deleted file mode 100644 (file)
index dd633ba..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-// Copyright (c) 1996-2004 Winbond Electronic Corporation
-//
-//  Module Name:
-//    wbusb_f.h
-//
-//  Abstract:
-//    Linux driver.
-//
-//  Author:
-//
-//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
-unsigned char WbUsb_initial(phw_data_t pHwData);
-void WbUsb_destroy(phw_data_t pHwData);
-unsigned char WbWLanInitialize(struct wb35_adapter *adapter);
-#define        WbUsb_Stop( _A )
-
-#define WbUsb_CheckForHang( _P )
-#define WbUsb_DetectStart( _P, _I )
index 3049ab6ef49e664d5012d8cd616c198147be0d70..c8da1a3fcd1a301d1266d47d271a0881e92e1415 100644 (file)
@@ -37,34 +37,32 @@ u8 hal_init_hardware(phw_data_t pHwData, struct wb35_adapter * adapter)
        pHwData->MaxReceiveLifeTime = DEFAULT_MSDU_LIFE_TIME; // Setting Rx maximum MSDU life time
        pHwData->FragmentThreshold = DEFAULT_FRAGMENT_THRESHOLD; // Setting default fragment threshold
 
-       if (WbUsb_initial(pHwData)) {
-               pHwData->InitialResource = 1;
-               if( Wb35Reg_initial(pHwData)) {
-                       pHwData->InitialResource = 2;
-                       if (Wb35Tx_initial(pHwData)) {
-                               pHwData->InitialResource = 3;
-                               if (Wb35Rx_initial(pHwData)) {
-                                       pHwData->InitialResource = 4;
-                                       OS_TIMER_INITIAL( &pHwData->LEDTimer, hal_led_control, pHwData );
-                                       OS_TIMER_SET( &pHwData->LEDTimer, 1000 ); // 20060623
-
-                                       //
-                                       // For restrict to vendor's hardware
-                                       //
-                                       SoftwareSet = hal_software_set( pHwData );
-
-                                       #ifdef Vendor2
-                                       // Try to make sure the EEPROM contain
-                                       SoftwareSet >>= 8;
-                                       if( SoftwareSet != 0x82 )
-                                               return FALSE;
-                                       #endif
-
-                                       Wb35Rx_start( pHwData );
-                                       Wb35Tx_EP2VM_start( pHwData );
-
-                                       return TRUE;
-                               }
+       pHwData->InitialResource = 1;
+       if( Wb35Reg_initial(pHwData)) {
+               pHwData->InitialResource = 2;
+               if (Wb35Tx_initial(pHwData)) {
+                       pHwData->InitialResource = 3;
+                       if (Wb35Rx_initial(pHwData)) {
+                               pHwData->InitialResource = 4;
+                               OS_TIMER_INITIAL( &pHwData->LEDTimer, hal_led_control, pHwData );
+                               OS_TIMER_SET( &pHwData->LEDTimer, 1000 ); // 20060623
+
+                               //
+                               // For restrict to vendor's hardware
+                               //
+                               SoftwareSet = hal_software_set( pHwData );
+
+                               #ifdef Vendor2
+                               // Try to make sure the EEPROM contain
+                               SoftwareSet >>= 8;
+                               if( SoftwareSet != 0x82 )
+                                       return FALSE;
+                               #endif
+
+                               Wb35Rx_start( pHwData );
+                               Wb35Tx_EP2VM_start( pHwData );
+
+                               return TRUE;
                        }
                }
        }
@@ -84,7 +82,6 @@ void hal_halt(phw_data_t pHwData, void *ppa_data)
                        Wb35Rx_destroy( pHwData ); // Release the Rx
                case 2: Wb35Tx_destroy( pHwData ); // Release the Tx
                case 1: Wb35Reg_destroy( pHwData ); // Release the Wb35 Regisster resources
-                               WbUsb_destroy( pHwData );// Release the WbUsb
        }
 }
 
@@ -330,8 +327,6 @@ void hal_stop(  phw_data_t pHwData )
 
        reg->D00_DmaControl &= ~0xc0000000;//Tx Off, Rx Off
        Wb35Reg_Write( pHwData, 0x0400, reg->D00_DmaControl );
-
-       WbUsb_Stop( pHwData ); // 20051230 Add.4
 }
 
 unsigned char hal_idle(phw_data_t pHwData)
index 56cd31098c43c3a0d64b79aa260f658a938e42b5..239c301b0296631512138ae51a69d65a16d6014c 100644 (file)
@@ -2,12 +2,10 @@
 // Device related include
 //=====================================================================
 #ifdef WB_LINUX
-       #include "linux/wbusb_f.h"
        #include "linux/wb35reg_f.h"
        #include "linux/wb35tx_f.h"
        #include "linux/wb35rx_f.h"
 #else
-       #include "wbusb_f.h"
        #include "wb35reg_f.h"
        #include "wb35tx_f.h"
        #include "wb35rx_f.h"
index 446ace9a1c4780d9d01b0f256fa52267aa1e3f2e..1d09c659a77d5a28687b897b20fef38c5642089f 100644 (file)
@@ -18,6 +18,5 @@ struct net_device_stats * wb35_netdev_stats( struct net_device *netdev );
 void WBLINUX_stop(  struct wb35_adapter *adapter );
 void WbWlanHalt(  struct wb35_adapter *adapter );
 void WBLINUX_ConnectStatus(  struct wb35_adapter *adapter,  u32 flag );
-
-
+unsigned char WbWLanInitialize(struct wb35_adapter *adapter);