It's the proper function to handle this stuff in. The original patch abused the fact that the ath9k driver in init called ath9k_init_platform to populate all the needed configuration. This is the wrong place to do so and it also goes away in 6.13. Move 553-ath9k_of_gpio_mask.patch contents to ath9k_of_init where they belong. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/18764 Signed-off-by: Robert Marko <robimarko@gmail.com>