Skip to contentSkip to conversation

ARM: imx: gpc: Remove .owner field

PATCH New Fabio Estevam 2 participants 2 messages May 9, 2015 – May 18, 2015

Subsystems (3)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 ARM: imx: gpc: Remove .owner field

From: Fabio Estevam <[email protected]>

This platform_driver does not need to set an owner as it will be populated by the driver core.

The semantic patch that makes this change is available in scripts/coccinelle/api/platform_no_drv_owner.cocci.

More information about semantic patching is available at
http://coccinelle.lip6.fr/

---
 arch/arm/mach-imx/gpc.c | 1 -
 1 file changed, 1 deletion(-)
arch/arm/mach-imx/gpc.c +0 -1
index 4d60005..c478a20 100644
@@ -464,7 +464,6 @@ static const struct of_device_id imx_gpc_dt_ids[] = {
 static struct platform_driver imx_gpc_driver = {
 	.driver = {
 		.name = "imx-gpc",
-		.owner = THIS_MODULE,
 		.of_match_table = imx_gpc_dt_ids,
 	},
 	.probe = imx_gpc_probe,
Signature · 1 line
1.9.1
Applied
#1 lore raw

PATCH 1/1 ARM: imx: gpc: Remove .owner field

Quoted 5 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

This platform_driver does not need to set an owner as it will be populated by the driver core.

Quoted 7 lines

The semantic patch that makes this change is available in scripts/coccinelle/api/platform_no_drv_owner.cocci.

More information about semantic patching is available at
http://coccinelle.lip6.fr/

Applied, thanks.