[PATCH] regulator: fix platform_no_drv_owner.cocci warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Fengguang Wu <fengguang.wu@xxxxxxxxx>

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 <collinsd@xxxxxxxxxxxxxx>
Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx>
---

 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,
--
To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux