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 334a147901e47e95b65e8ac6e27111109c4635c4..f3b2e148e6cef9dba83c58bba78075593479df24 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)