wifi: ath11k: ahb: use of_device_get_match_data
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.
Signed-off-by Rosen Penev <[email protected]>
--- drivers/net/wireless/ath/ath11k/ahb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/ath11k/ahb.c +1 -1
@@ -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