linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] power: supply: fix platform_no_drv_owner.cocci warnings
       [not found] <201701170752.5rCKgr4i%fengguang.wu@intel.com>
@ 2017-01-16 23:47 ` kbuild test robot
  2017-01-17  0:11   ` Sebastian Reichel
  0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2017-01-16 23:47 UTC (permalink / raw)
  To: Alexander Kurz; +Cc: kbuild-all, Sebastian Reichel, linux-pm, linux-kernel

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,

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] power: supply: fix platform_no_drv_owner.cocci warnings
  2017-01-16 23:47 ` [PATCH] power: supply: fix platform_no_drv_owner.cocci warnings kbuild test robot
@ 2017-01-17  0:11   ` Sebastian Reichel
  0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Reichel @ 2017-01-17  0:11 UTC (permalink / raw)
  To: kbuild test robot; +Cc: Alexander Kurz, kbuild-all, linux-pm, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 943 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-17  0:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <201701170752.5rCKgr4i%fengguang.wu@intel.com>
2017-01-16 23:47 ` [PATCH] power: supply: fix platform_no_drv_owner.cocci warnings kbuild test robot
2017-01-17  0:11   ` Sebastian Reichel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).