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


Groups > linux.kernel > #1292188

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

From kbuild test robot <lkp@intel.com>
Newsgroups linux.kernel
Subject [PATCH] mfd: hi655x: fix platform_no_drv_owner.cocci warnings
Date 2015-12-15 14:40 +0100
Message-ID <qFXZE-4IZ-31@gated-at.bofh.it> (permalink)
References <qFXZE-4IZ-19@gated-at.bofh.it> <qFXmW-4ea-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


drivers/mfd/hi655x-pmic.c:161: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: Chen Feng <puck.chen@hisilicon.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

 hi655x-pmic.c |    1 -
 1 file changed, 1 deletion(-)

--- a/drivers/mfd/hi655x-pmic.c
+++ b/drivers/mfd/hi655x-pmic.c
@@ -158,7 +158,6 @@ static int hi655x_pmic_probe(struct plat
 static struct platform_driver hi655x_pmic_driver = {
 	.driver	= {
 		.name =	"hi655x-pmic",
-		.owner = THIS_MODULE,
 		.of_match_table = of_hi655x_pmic_match_tbl,
 	},
 	.probe  = hi655x_pmic_probe,
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

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


Thread

[PATCH v3 3/5] mfd: hi655x: Add hi665x pmic driver Chen Feng <puck.chen@hisilicon.com> - 2015-12-15 14:00 +0100
  Re: [PATCH v3 3/5] mfd: hi655x: Add hi665x pmic driver kbuild test robot <lkp@intel.com> - 2015-12-15 14:40 +0100
  [PATCH] mfd: hi655x: fix platform_no_drv_owner.cocci warnings kbuild test robot <lkp@intel.com> - 2015-12-15 14:40 +0100

csiph-web