[PATCH] regulator: mcp16502: fix platform_no_drv_owner.cocci warnings

From: kbuild test robot
Date: Tue Nov 27 2018 - 23:02:57 EST


From: kbuild test robot <fengguang.wu@xxxxxxxxx>

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@xxxxxxxxxxxxx <Andrei.Stefanescu@xxxxxxxxxxxxx>
Signed-off-by: kbuild test robot <fengguang.wu@xxxxxxxxx>
---

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(-)

--- 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,
},