Skip to contentSkip to conversation

ath10k: fix pci feature bitmap

PATCH New Michal Kazior 2 participants 2 messages Apr 26, 2013 – Apr 30, 2013 1 message not in the archive Qualcomm Atheros ATH10K wireless driver

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 ath10k: fix pci feature bitmap

The array size evaluated to zero. This caused hw
v1 workaround to fail.

---
 drivers/net/wireless/ath/ath10k/pci.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/ath10k/pci.h +1 -1
index 1cf7f17..49f2d1b 100644
@@ -190,7 +190,7 @@ struct ath10k_pci {
 	void __iomem *mem;
 	int cacheline_sz;
 
-	unsigned long features[ATH10K_PCI_FEATURE_COUNT / sizeof(unsigned long)];
+	DECLARE_BITMAP(features, ATH10K_PCI_FEATURE_COUNT);
 
 	/*
 	 * Number of MSI interrupts granted, 0 --> using legacy PCI line
Signature · 1 line
1.7.9.5
Applied
#2 lore raw

PATCH 1/1 ath10k: fix pci feature bitmap

Quoted 4 lines · Michal Kazior

The array size evaluated to zero. This caused hw
v1 workaround to fail.

Thanks, applied.

Signature · 1 line
Kalle Valo