staging: rtl8192e: Remove commented function rtl8192_set_mode()

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Mike McCormack 2010-09-20 23:11:59 +09:00 committed by Greg Kroah-Hartman
parent cdeac5df34
commit a6b1d95908
1 changed files with 0 additions and 31 deletions

View File

@ -809,20 +809,6 @@ void rtl8192_irq_disable(struct net_device *dev)
priv->irq_enabled = 0;
}
#if 0
static void rtl8192_set_mode(struct net_device *dev,int mode)
{
u8 ecmd;
ecmd=read_nic_byte(dev, EPROM_CMD);
ecmd=ecmd &~ EPROM_CMD_OPERATING_MODE_MASK;
ecmd=ecmd | (mode<<EPROM_CMD_OPERATING_MODE_SHIFT);
ecmd=ecmd &~ (1<<EPROM_CS_SHIFT);
ecmd=ecmd &~ (1<<EPROM_CK_SHIFT);
write_nic_byte(dev, EPROM_CMD, ecmd);
}
#endif
void rtl8192_update_msr(struct net_device *dev)
{
struct r8192_priv *priv = ieee80211_priv(dev);
@ -1062,27 +1048,10 @@ inline u16 rtl8192_rate2rate(short rate)
static void rtl8192_data_hard_stop(struct net_device *dev)
{
//FIXME !!
#if 0
struct r8192_priv *priv = (struct r8192_priv *)ieee80211_priv(dev);
priv->dma_poll_mask |= (1<<TX_DMA_STOP_LOWPRIORITY_SHIFT);
rtl8192_set_mode(dev,EPROM_CMD_CONFIG);
write_nic_byte(dev,TX_DMA_POLLING,priv->dma_poll_mask);
rtl8192_set_mode(dev,EPROM_CMD_NORMAL);
#endif
}
static void rtl8192_data_hard_resume(struct net_device *dev)
{
// FIXME !!
#if 0
struct r8192_priv *priv = (struct r8192_priv *)ieee80211_priv(dev);
priv->dma_poll_mask &= ~(1<<TX_DMA_STOP_LOWPRIORITY_SHIFT);
rtl8192_set_mode(dev,EPROM_CMD_CONFIG);
write_nic_byte(dev,TX_DMA_POLLING,priv->dma_poll_mask);
rtl8192_set_mode(dev,EPROM_CMD_NORMAL);
#endif
}
/*