Commit 54369cc6 authored by Pekka Enberg's avatar Pekka Enberg Committed by Greg Kroah-Hartman

Staging: w35und: remove ->shutdown from struct wbsoft_priv

It's not actually used for anything, so remove it.
Acked-by: default avatarPavel Machek <pavel@suse.cz>
Signed-off-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 72e202d0
...@@ -9,7 +9,6 @@ w35und-objs := \ ...@@ -9,7 +9,6 @@ w35und-objs := \
wb35rx.o \ wb35rx.o \
wb35tx.o \ wb35tx.o \
wbhal.o \ wbhal.o \
wblinux.o \
wbusb.o \ wbusb.o \
......
...@@ -24,7 +24,6 @@ struct wbsoft_priv { ...@@ -24,7 +24,6 @@ struct wbsoft_priv {
MDS Mds; MDS Mds;
spinlock_t SpinLock; spinlock_t SpinLock;
u32 shutdown;
atomic_t ThreadCount; atomic_t ThreadCount;
......
...@@ -850,7 +850,6 @@ void hal_surprise_remove(struct wbsoft_priv *adapter) ...@@ -850,7 +850,6 @@ void hal_surprise_remove(struct wbsoft_priv *adapter)
#ifdef _PE_STATE_DUMP_ #ifdef _PE_STATE_DUMP_
WBDEBUG(("Calling hal_surprise_remove\n")); WBDEBUG(("Calling hal_surprise_remove\n"));
#endif #endif
WBLINUX_stop( adapter );
} }
} }
......
//============================================================================
// Copyright (c) 1996-2005 Winbond Electronic Corporation
//
// Module Name:
// wblinux.c
//
// Abstract:
// Linux releated routines
//
//============================================================================
#include <linux/netdevice.h>
#include "mds_f.h"
#include "mto_f.h"
#include "os_common.h"
#include "wbhal_f.h"
#include "wblinux_f.h"
void
WBLINUX_stop( struct wbsoft_priv * adapter )
{
if (atomic_inc_return(&adapter->ThreadCount) == 1) {
// Shutdown module immediately
adapter->shutdown = 1;
#ifdef _PE_STATE_DUMP_
WBDEBUG(( "[w35und] SKB_RELEASE OK\n" ));
#endif
}
atomic_dec(&adapter->ThreadCount);
}
...@@ -10,9 +10,7 @@ ...@@ -10,9 +10,7 @@
// wblinux_f.h // wblinux_f.h
// //
int wb35_start_xmit(struct sk_buff *skb, struct net_device *netdev ); int wb35_start_xmit(struct sk_buff *skb, struct net_device *netdev );
void WBLINUX_stop( struct wbsoft_priv *adapter );
void wb35_set_multicast( struct net_device *netdev ); void wb35_set_multicast( struct net_device *netdev );
struct net_device_stats * wb35_netdev_stats( struct net_device *netdev ); struct net_device_stats * wb35_netdev_stats( struct net_device *netdev );
void WBLINUX_stop( struct wbsoft_priv *adapter );
#endif #endif
...@@ -302,8 +302,7 @@ static unsigned char wb35_hw_init(struct ieee80211_hw *hw) ...@@ -302,8 +302,7 @@ static unsigned char wb35_hw_init(struct ieee80211_hw *hw)
case 4: case 4:
case 3: Mds_Destroy( priv ); case 3: Mds_Destroy( priv );
case 2: case 2:
case 1: WBLINUX_stop(priv); case 1: hal_halt( pHwData, NULL );
hal_halt( pHwData, NULL );
case 0: break; case 0: break;
} }
...@@ -402,9 +401,6 @@ static void wb35_hw_halt(struct wbsoft_priv *adapter) ...@@ -402,9 +401,6 @@ static void wb35_hw_halt(struct wbsoft_priv *adapter)
#endif #endif
msleep(100);// Waiting Irp completed msleep(100);// Waiting Irp completed
// Destroy the NDIS module
WBLINUX_stop(adapter);
// Halt the HAL // Halt the HAL
hal_halt(&adapter->sHwData, NULL); hal_halt(&adapter->sHwData, NULL);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment