diff mbox series

[-next] opp: ti-opp-supply: Fix platform_no_drv_owner.cocci warnings

Message ID 1542858067-41669-1-git-send-email-yuehaibing@huawei.com (mailing list archive)
State Not Applicable, archived
Headers show
Series [-next] opp: ti-opp-supply: Fix platform_no_drv_owner.cocci warnings | expand

Commit Message

Yue Haibing Nov. 22, 2018, 3:41 a.m. UTC
Remove .owner field if calls are used which set it automatically
Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/opp/ti-opp-supply.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Viresh Kumar Nov. 22, 2018, 6:17 a.m. UTC | #1
On 22-11-18, 03:41, YueHaibing wrote:
> Remove .owner field if calls are used which set it automatically
> Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
> 
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> ---
>  drivers/opp/ti-opp-supply.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/opp/ti-opp-supply.c b/drivers/opp/ti-opp-supply.c
> index 3f4fb4d..1c69c40 100644
> --- a/drivers/opp/ti-opp-supply.c
> +++ b/drivers/opp/ti-opp-supply.c
> @@ -417,7 +417,6 @@ static int ti_opp_supply_probe(struct platform_device *pdev)
>  	.probe = ti_opp_supply_probe,
>  	.driver = {
>  		   .name = "ti_opp_supply",
> -		   .owner = THIS_MODULE,
>  		   .of_match_table = of_match_ptr(ti_opp_supply_of_match),
>  		   },
>  };

Applied, thanks.
diff mbox series

Patch

diff --git a/drivers/opp/ti-opp-supply.c b/drivers/opp/ti-opp-supply.c
index 3f4fb4d..1c69c40 100644
--- a/drivers/opp/ti-opp-supply.c
+++ b/drivers/opp/ti-opp-supply.c
@@ -417,7 +417,6 @@  static int ti_opp_supply_probe(struct platform_device *pdev)
 	.probe = ti_opp_supply_probe,
 	.driver = {
 		   .name = "ti_opp_supply",
-		   .owner = THIS_MODULE,
 		   .of_match_table = of_match_ptr(ti_opp_supply_of_match),
 		   },
 };