Skip to contentSkip to conversation

hwrng-PIC32: Delete unnecessary assignment for the field "owner"

PATCH In review SF Markus Elfring 2 participants 2 messages Aug 16, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hwrng-PIC32: Delete unnecessary assignment for the field "owner"

From: Markus Elfring <[email protected]>
Date: Tue, 16 Aug 2016 07:51:21 +0200

The field "owner" is set by the core.
Thus delete an unneeded initialisation.

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

---
 drivers/char/hw_random/pic32-rng.c | 1 -
 1 file changed, 1 deletion(-)
drivers/char/hw_random/pic32-rng.c +0 -1
index 108897b..11dc9b7 100644
@@ -143,7 +143,6 @@ static struct platform_driver pic32_rng_driver = {
 	.remove		= pic32_rng_remove,
 	.driver		= {
 		.name	= "pic32-rng",
-		.owner	= THIS_MODULE,
 		.of_match_table = of_match_ptr(pic32_rng_of_match),
 	},
 };
Signature · 1 line
2.9.2
maintainer
#1 lore raw
Quoted 8 lines · SF Markus Elfring

From: Markus Elfring <[email protected]>
Date: Tue, 16 Aug 2016 07:51:21 +0200

The field "owner" is set by the core.
Thus delete an unneeded initialisation.

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

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt