]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: ath5k: Use platform_get_irq() to get the interrupt
authorDouglas Anderson <dianders@chromium.org>
Wed, 1 Feb 2023 16:54:43 +0000 (08:54 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 May 2023 14:03:17 +0000 (23:03 +0900)
commitec4fe95df11de2f4435e2ebc723184b9656b9db4
tree8edb790fa9135d56b68537aefb93d7c966dc8b05
parentbde855ba45a311b51cfda2eb9fb2cc36daf51073
wifi: ath5k: Use platform_get_irq() to get the interrupt

[ Upstream commit 95c95251d0547b46d6571e4fbd51b42865c15a4a ]

As of commit 7becc388bb74 ("of/platform: Drop static setup of IRQ
resource from DT core"), we need to use platform_get_irq() instead of
platform_get_resource() to get our IRQs because
platform_get_resource() simply won't get them anymore.

This was already fixed in several other Atheros WiFi drivers,
apparently in response to Zeal Robot reports. An example of another
fix is commit 1a53522423a0 ("ath9k: Use platform_get_irq() to get the
interrupt"). ath5k seems to have been missed in this effort, though.

Fixes: 7becc388bb74 ("of/platform: Drop static setup of IRQ resource from DT core")
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230201084131.v2.2.Ic4f8542b0588d7eb4bc6e322d4af3d2064e84ff0@changeid
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/ath/ath5k/ahb.c