diff mbox

power: supply: fix platform_no_drv_owner.cocci warnings

Message ID 20170116234756.GA21086@intel11.lkp.intel.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Fengguang Wu Jan. 16, 2017, 11:47 p.m. UTC
drivers/power/supply/max14656_charger_detector.c:317: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

CC: Alexander Kurz <akurz@blala.de>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

 max14656_charger_detector.c |    1 -
 1 file changed, 1 deletion(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Sebastian Reichel Jan. 17, 2017, 12:11 a.m. UTC | #1
Hi,

On Tue, Jan 17, 2017 at 07:47:56AM +0800, kbuild test robot wrote:
> drivers/power/supply/max14656_charger_detector.c:317: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
> 
> CC: Alexander Kurz <akurz@blala.de>
> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
> ---
> 
>  max14656_charger_detector.c |    1 -
>  1 file changed, 1 deletion(-)
> 
> --- a/drivers/power/supply/max14656_charger_detector.c
> +++ b/drivers/power/supply/max14656_charger_detector.c
> @@ -314,7 +314,6 @@ static const struct of_device_id max1465
>  static struct i2c_driver max14656_i2c_driver = {
>  	.driver = {
>  		.name	= "max14656",
> -		.owner	= THIS_MODULE,
>  		.of_match_table = max14656_match_table,
>  	},
>  	.probe		= max14656_probe,

Thanks, queued.

-- Sebastian
diff mbox

Patch

--- a/drivers/power/supply/max14656_charger_detector.c
+++ b/drivers/power/supply/max14656_charger_detector.c
@@ -314,7 +314,6 @@  static const struct of_device_id max1465
 static struct i2c_driver max14656_i2c_driver = {
 	.driver = {
 		.name	= "max14656",
-		.owner	= THIS_MODULE,
 		.of_match_table = max14656_match_table,
 	},
 	.probe		= max14656_probe,