Commit 9ce9ed5d authored by Pekka Enberg's avatar Pekka Enberg Committed by Greg Kroah-Hartman
Browse files

w35und: remove dead code from wbusb_f.h



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: default avatarPekka Enberg <penberg@cs.helsinki.fi>
Acked-by: default avatarPavel Machek <pavel@suse.cz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent f3d20188
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -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);
+0 −20
Original line number Diff line number Diff line
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// 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 )
+26 −31
Original line number Diff line number Diff line
@@ -37,7 +37,6 @@ 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;
@@ -67,7 +66,6 @@ u8 hal_init_hardware(phw_data_t pHwData, struct wb35_adapter * adapter)
			}
		}
	}
	}

	pHwData->SurpriseRemove = 1;
	return FALSE;
@@ -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)
+0 −2
Original line number Diff line number Diff line
@@ -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"
+1 −2
Original line number Diff line number Diff line
@@ -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);