ath10k: snoc: Remove owner assignment from platform_driver
diff mbox

Message ID 1525489448-23595-1-git-send-email-festevam@gmail.com
State New
Headers show

Commit Message

Fabio Estevam May 5, 2018, 3:04 a.m. UTC
From: Fabio Estevam <fabio.estevam@nxp.com>

Structure platform_driver does not need to set the owner field, as this
will be populated by the driver core.

Generated by scripts/coccinelle/api/platform_no_drv_owner.cocci.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
 drivers/net/wireless/ath/ath10k/snoc.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Kalle Valo May 12, 2018, 9:02 a.m. UTC | #1
Fabio Estevam <festevam@gmail.com> wrote:

> Structure platform_driver does not need to set the owner field, as this
> will be populated by the driver core.
> 
> Generated by scripts/coccinelle/api/platform_no_drv_owner.cocci.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

Patch applied to ath-next branch of ath.git, thanks.

469bd5eab622 ath10k: snoc: Remove owner assignment from platform_driver

Patch
diff mbox

diff --git a/drivers/net/wireless/ath/ath10k/snoc.c b/drivers/net/wireless/ath/ath10k/snoc.c
index 47a4d2a..a3a7042 100644
--- a/drivers/net/wireless/ath/ath10k/snoc.c
+++ b/drivers/net/wireless/ath/ath10k/snoc.c
@@ -1385,7 +1385,6 @@  static struct platform_driver ath10k_snoc_driver = {
 		.remove = ath10k_snoc_remove,
 		.driver = {
 			.name   = "ath10k_snoc",
-			.owner = THIS_MODULE,
 			.of_match_table = ath10k_snoc_dt_match,
 		},
 };