lkml.org 
[lkml]   [2018]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] clk: bd71837: fix platform_no_drv_owner.cocci warnings
From: kbuild test robot <fengguang.wu@intel.com>

drivers/clk/clk-bd71837.c:145:6-11: 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: 0e03c7b6a3c7 ("clk: bd71837: Build ROHM BD71837 PMIC clock driver")
CC: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Signed-off-by: kbuild test robot <fengguang.wu@intel.com>
---

clk-bd71837.c | 1 -
1 file changed, 1 deletion(-)

--- a/drivers/clk/clk-bd71837.c
+++ b/drivers/clk/clk-bd71837.c
@@ -142,7 +142,6 @@ static int bd71837_clk_remove(struct pla
static struct platform_driver bd71837_clk = {
.driver = {
.name = "bd71837-clk",
- .owner = THIS_MODULE,
},
.probe = bd71837_clk_probe,
.remove = bd71837_clk_remove,
\
 
 \ /
  Last update: 2018-05-27 10:29    [W:0.172 / U:0.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site