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


Groups > linux.kernel > #1352289

[PATCH] mfd: act8945a: fix platform_no_drv_owner.cocci warnings

From kbuild test robot <lkp@intel.com>
Newsgroups linux.kernel
Subject [PATCH] mfd: act8945a: fix platform_no_drv_owner.cocci warnings
Date 2016-03-08 01:00 +0100
Message-ID <radeb-1go-31@gated-at.bofh.it> (permalink)
References <radeb-1go-33@gated-at.bofh.it> <qOuF4-8n1-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


drivers/mfd/act8945a.c:100:6-11: 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: Wenyou Yang <wenyou.yang@atmel.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

 act8945a.c |    1 -
 1 file changed, 1 deletion(-)

--- a/drivers/mfd/act8945a.c
+++ b/drivers/mfd/act8945a.c
@@ -97,7 +97,6 @@ MODULE_DEVICE_TABLE(of, act8945a_of_matc
 static struct i2c_driver act8945a_i2c_driver = {
 	.driver = {
 		   .name = "act8945a",
-		   .owner = THIS_MODULE,
 		   .of_match_table = of_match_ptr(act8945a_of_match),
 	},
 	.probe = act8945a_i2c_probe,

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] mfd: act8945a: fix platform_no_drv_owner.cocci warnings kbuild test robot <lkp@intel.com> - 2016-03-08 01:00 +0100
  RE: [PATCH] mfd: act8945a: fix platform_no_drv_owner.cocci warnings "Yang, Wenyou" <Wenyou.Yang@atmel.com> - 2016-03-08 03:00 +0100
    Re: [PATCH] mfd: act8945a: fix platform_no_drv_owner.cocci warnings Lee Jones <lee.jones@linaro.org> - 2016-03-08 06:00 +0100

csiph-web