diff mbox series

regulator: mcp16502: fix platform_no_drv_owner.cocci warnings

Message ID 20181128040213.GA30252@lkp-ne04 (mailing list archive)
State New, archived
Headers show
Series regulator: mcp16502: fix platform_no_drv_owner.cocci warnings | expand

Commit Message

Fengguang Wu Nov. 28, 2018, 4:02 a.m. UTC
From: kbuild test robot <fengguang.wu@intel.com>

drivers/regulator/mcp16502.c:530: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

Fixes: 9199c277faeb ("regulator: mcp16502: add regulator driver for MCP16502")
CC: Andrei.Stefanescu@microchip.com <Andrei.Stefanescu@microchip.com>
Signed-off-by: kbuild test robot <fengguang.wu@intel.com>
---

url:    https://github.com/0day-ci/linux/commits/Andrei-Stefanescu-microchip-com/add-support-for-MCP16502-PMIC/20181128-041809
base:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next

 mcp16502.c |    1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

--- a/drivers/regulator/mcp16502.c
+++ b/drivers/regulator/mcp16502.c
@@ -527,7 +527,6 @@  static struct i2c_driver mcp16502_drv =
 	.probe		= mcp16502_probe,
 	.driver		= {
 		.name	= "mcp16502-regulator",
-		.owner		= THIS_MODULE,
 		.of_match_table	= of_match_ptr(mcp16502_ids),
 		.pm = &mcp16502_pm_ops,
 	},