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


Groups > linux.kernel > #1425490

[PATCH] iio: fix platform_no_drv_owner.cocci warnings

From kbuild test robot <lkp@intel.com>
Newsgroups linux.kernel
Subject [PATCH] iio: fix platform_no_drv_owner.cocci warnings
Date 2016-06-17 23:30 +0200
Message-ID <rL9uV-3qd-1@gated-at.bofh.it> (permalink)
References <rL9uV-3qd-3@gated-at.bofh.it> <rKZYB-5P6-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


drivers/iio/light/si1145.c:1336: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: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

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

--- a/drivers/iio/light/si1145.c
+++ b/drivers/iio/light/si1145.c
@@ -1333,7 +1333,6 @@ static int si1145_remove(struct i2c_clie
 static struct i2c_driver si1145_driver = {
 	.driver = {
 		.name   = "si1145",
-		.owner  = THIS_MODULE,
 	},
 	.probe  = si1145_probe,
 	.remove = si1145_remove,

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


Thread

[PATCH] iio: fix platform_no_drv_owner.cocci warnings kbuild test robot <lkp@intel.com> - 2016-06-17 23:30 +0200

csiph-web