--- a/drivers/net/wireless/ath/ath11k/ahb.c +++ b/drivers/net/wireless/ath/ath11k/ahb.c @@ -1324,7 +1324,11 @@ static void ath11k_ahb_free_resources(st platform_set_drvdata(pdev, NULL); } +#if LINUX_VERSION_IS_LESS(6,11,0) static int ath11k_ahb_remove(struct platform_device *pdev) +#else +static void ath11k_ahb_remove(struct platform_device *pdev) +#endif { struct ath11k_base *ab = platform_get_drvdata(pdev); @@ -1341,7 +1345,9 @@ static int ath11k_ahb_remove(struct plat qmi_fail: ath11k_ahb_free_resources(ab); +#if LINUX_VERSION_IS_LESS(6,11,0) return 0; +#endif } static void ath11k_ahb_shutdown(struct platform_device *pdev)