ath10k: sdio: add .owner field
authorBrian Norris <briannorris@chromium.org>
Tue, 29 Jan 2019 23:14:48 +0000 (15:14 -0800)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 7 Feb 2019 14:53:01 +0000 (16:53 +0200)
sdio_register_driver() doesn't do this for us, unlike (for example)
platform_driver_register(). This is important for helping track
module-to-device relationships.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/sdio.c

index 334a147..f3b2e14 100644 (file)
@@ -2096,7 +2096,10 @@ static struct sdio_driver ath10k_sdio_driver = {
        .id_table = ath10k_sdio_devices,
        .probe = ath10k_sdio_probe,
        .remove = ath10k_sdio_remove,
-       .drv.pm = ATH10K_SDIO_PM_OPS,
+       .drv = {
+               .owner = THIS_MODULE,
+               .pm = ATH10K_SDIO_PM_OPS,
+       },
 };
 
 static int __init ath10k_sdio_init(void)