public inbox for ath11k@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH ath-next] wifi: ath11k: ahb: use of_device_get_match_data
@ 2025-12-03  5:51 Rosen Penev
  0 siblings, 0 replies; only message in thread
From: Rosen Penev @ 2025-12-03  5:51 UTC (permalink / raw)
  To: linux-wireless
  Cc: Jeff Johnson, open list:QUALCOMM ATHEROS ATH11K WIRELESS DRIVER,
	open list

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

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 drivers/net/wireless/ath/ath11k/ahb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ath/ath11k/ahb.c b/drivers/net/wireless/ath/ath11k/ahb.c
index 8dfe9b40c126..2837789cf4f1 100644
--- a/drivers/net/wireless/ath/ath11k/ahb.c
+++ b/drivers/net/wireless/ath/ath11k/ahb.c
@@ -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



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2025-12-03  5:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-03  5:51 [PATCH ath-next] wifi: ath11k: ahb: use of_device_get_match_data Rosen Penev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox