diff options
Diffstat (limited to 'drivers/net/wireless/iwlegacy/common.c')
| -rw-r--r-- | drivers/net/wireless/iwlegacy/common.c | 26 | 
1 files changed, 11 insertions, 15 deletions
diff --git a/drivers/net/wireless/iwlegacy/common.c b/drivers/net/wireless/iwlegacy/common.c index e006ea83132..592d0aa634a 100644 --- a/drivers/net/wireless/iwlegacy/common.c +++ b/drivers/net/wireless/iwlegacy/common.c @@ -1122,7 +1122,7 @@ il_set_power(struct il_priv *il, struct il_powertable_cmd *cmd)  			       sizeof(struct il_powertable_cmd), cmd);  } -int +static int  il_power_set_mode(struct il_priv *il, struct il_powertable_cmd *cmd, bool force)  {  	int ret; @@ -2566,15 +2566,13 @@ il_rx_queue_alloc(struct il_priv *il)  	INIT_LIST_HEAD(&rxq->rx_used);  	/* Alloc the circular buffer of Read Buffer Descriptors (RBDs) */ -	rxq->bd = -	    dma_alloc_coherent(dev, 4 * RX_QUEUE_SIZE, &rxq->bd_dma, -			       GFP_KERNEL); +	rxq->bd = dma_alloc_coherent(dev, 4 * RX_QUEUE_SIZE, &rxq->bd_dma, +				     GFP_KERNEL);  	if (!rxq->bd)  		goto err_bd; -	rxq->rb_stts = -	    dma_alloc_coherent(dev, sizeof(struct il_rb_status), -			       &rxq->rb_stts_dma, GFP_KERNEL); +	rxq->rb_stts = dma_alloc_coherent(dev, sizeof(struct il_rb_status), +					  &rxq->rb_stts_dma, GFP_KERNEL);  	if (!rxq->rb_stts)  		goto err_rb; @@ -2941,10 +2939,9 @@ il_tx_queue_alloc(struct il_priv *il, struct il_tx_queue *txq, u32 id)  	 * shared with device */  	txq->tfds =  	    dma_alloc_coherent(dev, tfd_sz, &txq->q.dma_addr, GFP_KERNEL); -	if (!txq->tfds) { -		IL_ERR("Fail to alloc TFDs\n"); +	if (!txq->tfds)  		goto error; -	} +  	txq->q.id = id;  	return 0; @@ -4704,8 +4701,7 @@ out:  }  EXPORT_SYMBOL(il_mac_change_interface); -void -il_mac_flush(struct ieee80211_hw *hw, bool drop) +void il_mac_flush(struct ieee80211_hw *hw, u32 queues, bool drop)  {  	struct il_priv *il = hw->priv;  	unsigned long timeout = jiffies + msecs_to_jiffies(500); @@ -4891,7 +4887,7 @@ il_add_beacon_time(struct il_priv *il, u32 base, u32 addon,  }  EXPORT_SYMBOL(il_add_beacon_time); -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP  static int  il_pci_suspend(struct device *device) @@ -4942,7 +4938,7 @@ il_pci_resume(struct device *device)  SIMPLE_DEV_PM_OPS(il_pm_ops, il_pci_suspend, il_pci_resume);  EXPORT_SYMBOL(il_pm_ops); -#endif /* CONFIG_PM */ +#endif /* CONFIG_PM_SLEEP */  static void  il_update_qos(struct il_priv *il) @@ -4975,7 +4971,7 @@ il_mac_config(struct ieee80211_hw *hw, u32 changed)  	struct il_priv *il = hw->priv;  	const struct il_channel_info *ch_info;  	struct ieee80211_conf *conf = &hw->conf; -	struct ieee80211_channel *channel = conf->channel; +	struct ieee80211_channel *channel = conf->chandef.chan;  	struct il_ht_config *ht_conf = &il->current_ht_config;  	unsigned long flags = 0;  	int ret = 0;  |