[PATCH] ARM: s3c64xx: Delete unnecessary assignment for the field "owner"

SF Markus Elfring elfring at users.sourceforge.net
Mon Aug 15 09:20:18 PDT 2016


From: Markus Elfring <elfring at users.sourceforge.net>
Date: Mon, 15 Aug 2016 18:06:46 +0200

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

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
Signed-off-by: Markus Elfring <elfring at users.sourceforge.net>
---
 arch/arm/mach-s3c64xx/mach-crag6410-module.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/arm/mach-s3c64xx/mach-crag6410-module.c b/arch/arm/mach-s3c64xx/mach-crag6410-module.c
index 571f95c..ccc3ab8 100644
--- a/arch/arm/mach-s3c64xx/mach-crag6410-module.c
+++ b/arch/arm/mach-s3c64xx/mach-crag6410-module.c
@@ -393,8 +393,7 @@ static const struct i2c_device_id wlf_gf_module_id[] = {
 
 static struct i2c_driver wlf_gf_module_driver = {
 	.driver = {
-		.name = "wlf-gf-module",
-		.owner = THIS_MODULE,
+		.name = "wlf-gf-module"
 	},
 	.probe = wlf_gf_module_probe,
 	.id_table = wlf_gf_module_id,
-- 
2.9.2




More information about the linux-arm-kernel mailing list