瀏覽代碼

ath10k: remove un ar_pci->cacheline_sz field

cacheline_sz is not used anywhere and can be removed.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Kalle Valo 12 年之前
父節點
當前提交
a18b5ed8d2
共有 2 個文件被更改,包括 0 次插入3 次删除
  1. 0 2
      drivers/net/wireless/ath/ath10k/pci.c
  2. 0 1
      drivers/net/wireless/ath/ath10k/pci.h

+ 0 - 2
drivers/net/wireless/ath/ath10k/pci.c

@@ -2394,8 +2394,6 @@ static int ath10k_pci_probe(struct pci_dev *pdev,
 
 	spin_lock_init(&ar_pci->ce_lock);
 
-	ar_pci->cacheline_sz = dma_get_cache_alignment();
-
 	ret = ath10k_core_register(ar);
 	if (ret) {
 		ath10k_err("could not register driver core (%d)\n", ret);

+ 0 - 1
drivers/net/wireless/ath/ath10k/pci.h

@@ -190,7 +190,6 @@ struct ath10k_pci {
 	struct device *dev;
 	struct ath10k *ar;
 	void __iomem *mem;
-	int cacheline_sz;
 
 	DECLARE_BITMAP(features, ATH10K_PCI_FEATURE_COUNT);