[PATCH ath-next] wifi: ath11k: ahb: use of_device_get_match_data

Rosen Penev <[email protected]>
Newsgroups org.infradead.lists.ath11k,org.kernel.vger.linux-kernel,org.kernel.vger.linux-wireless
Message-ID <[email protected]>
No reason to use the non OF version as AHB is OF only.

Signed-off-by: Rosen Penev <[email protected]>
---
 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.