Thread (29 messages) 29 messages, 7 authors, 2018-05-22
STALE2966d

[PATCH] regulator: fix platform_no_drv_owner.cocci warnings

From: kbuild test robot <hidden>
Date: 2018-03-18 20:39:25
Also in: linux-arm-msm, linux-devicetree, lkml

From: Fengguang Wu <redacted>

drivers/regulator/qcom_rpmh-regulator.c:1104: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: 835fda5b6c24 ("regulator: add QCOM RPMh regulator driver")
CC: David Collins <redacted>
Signed-off-by: Fengguang Wu <redacted>
---

 qcom_rpmh-regulator.c |    1 -
 1 file changed, 1 deletion(-)
--- a/drivers/regulator/qcom_rpmh-regulator.c
+++ b/drivers/regulator/qcom_rpmh-regulator.c
@@ -1101,7 +1101,6 @@ static struct platform_driver rpmh_regul
 	.driver		= {
 		.name		= "qcom-rpmh-regulator",
 		.of_match_table	= rpmh_regulator_match_table,
-		.owner		= THIS_MODULE,
 	},
 	.probe		= rpmh_regulator_probe,
 	.remove		= rpmh_regulator_remove,
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help