wifi: wilc1000: replace open-coded module_sdio_driver()
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Fri, 29 Mar 2024 17:10:18 +0000 (18:10 +0100)
committerKalle Valo <kvalo@kernel.org>
Fri, 5 Apr 2024 08:59:38 +0000 (11:59 +0300)
Use module_sdio_driver() instead of open-coding it.  No functional
difference.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240329171019.63836-5-krzysztof.kozlowski@linaro.org
drivers/net/wireless/microchip/wilc1000/sdio.c

index d6d3946..52a770c 100644 (file)
@@ -981,8 +981,7 @@ static struct sdio_driver wilc_sdio_driver = {
                .of_match_table = wilc_of_match,
        }
 };
-module_driver(wilc_sdio_driver,
-             sdio_register_driver,
-             sdio_unregister_driver);
+module_sdio_driver(wilc_sdio_driver);
+
 MODULE_DESCRIPTION("Atmel WILC1000 SDIO wireless driver");
 MODULE_LICENSE("GPL");