Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1305527

[PATCH] fix platform_no_drv_owner.cocci warnings

From kbuild test robot <lkp@intel.com>
Newsgroups linux.kernel
Subject [PATCH] fix platform_no_drv_owner.cocci warnings
Date 2016-01-10 11:20 +0100
Message-ID <qPlgm-2Ne-3@gated-at.bofh.it> (permalink)
References <qPlgm-2Ne-5@gated-at.bofh.it> <qPkki-2bU-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


drivers/mfd/imanager-core.c:248:3-8: No need to set .owner here. The core will do it.

 Remove .owner field if calls are used which set it automatically

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

CC: Richard Vidal-Dorsch <richard.dorsch@gmail.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

 imanager-core.c |    1 -
 1 file changed, 1 deletion(-)

--- a/drivers/mfd/imanager-core.c
+++ b/drivers/mfd/imanager-core.c
@@ -245,7 +245,6 @@ static int imanager_remove(struct platfo
 
 static struct platform_driver imanager_driver = {
 	.driver = {
-		.owner = THIS_MODULE,
 		.name  = "imanager-core",
 	},
 	.probe	= imanager_probe,

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH] fix platform_no_drv_owner.cocci warnings kbuild test robot <lkp@intel.com> - 2016-01-10 11:20 +0100

csiph-web