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


Groups > linux.kernel > #1425490 > unrolled thread

[PATCH] iio: fix platform_no_drv_owner.cocci warnings

Started bykbuild test robot <lkp@intel.com>
First post2016-06-17 23:30 +0200
Last post2016-06-17 23:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#1425490 — [PATCH] iio: fix platform_no_drv_owner.cocci warnings

Fromkbuild test robot <lkp@intel.com>
Date2016-06-17 23:30 +0200
Subject[PATCH] iio: fix platform_no_drv_owner.cocci warnings
Message-ID<rL9uV-3qd-1@gated-at.bofh.it>
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,

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web