Skip to contentSkip to conversation

wifi: ath11k: ahb: use of_device_get_match_data

PATCH New Rosen Penev 1 participant 1 message Dec 3, 2025 Qualcomm Atheros ATH11K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wifi: ath11k: ahb: use of_device_get_match_data

No reason to use the non OF version as AHB is OF only.

---
 drivers/net/wireless/ath/ath11k/ahb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/ath11k/ahb.c +1 -1
index 8dfe9b40c126..2837789cf4f1 100644
@@ -1114,7 +1114,7 @@ static int ath11k_ahb_probe(struct platform_device *pdev)
 	enum ath11k_hw_rev hw_rev;
 	int ret;
 
-	hw_rev = (uintptr_t)device_get_match_data(&pdev->dev);
+	hw_rev = (uintptr_t)of_device_get_match_data(&pdev->dev);
 
 	switch (hw_rev) {
 	case ATH11K_HW_IPQ8074:

--
2.52.0