* [PATCH] pwm: fix platform_no_drv_owner.cocci warnings
[not found] <201704130438.qZYSDVF1%fengguang.wu@intel.com>
@ 2017-04-12 20:54 ` kbuild test robot
2017-04-13 15:28 ` Thierry Reding
0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2017-04-12 20:54 UTC (permalink / raw)
To: John Crispin; +Cc: kbuild-all, linux-pwm, Thierry Reding, linux-kernel
drivers/pwm/pwm-mediatek.c:210: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: John Crispin <john@phrozen.org>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
pwm-mediatek.c | 1 -
1 file changed, 1 deletion(-)
--- a/drivers/pwm/pwm-mediatek.c
+++ b/drivers/pwm/pwm-mediatek.c
@@ -207,7 +207,6 @@ MODULE_DEVICE_TABLE(of, mtk_pwm_of_match
static struct platform_driver mtk_pwm_driver = {
.driver = {
.name = "mtk-pwm",
- .owner = THIS_MODULE,
.of_match_table = mtk_pwm_of_match,
},
.probe = mtk_pwm_probe,
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] pwm: fix platform_no_drv_owner.cocci warnings
2017-04-12 20:54 ` [PATCH] pwm: fix platform_no_drv_owner.cocci warnings kbuild test robot
@ 2017-04-13 15:28 ` Thierry Reding
0 siblings, 0 replies; 2+ messages in thread
From: Thierry Reding @ 2017-04-13 15:28 UTC (permalink / raw)
To: kbuild test robot; +Cc: John Crispin, kbuild-all, linux-pwm, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 539 bytes --]
On Thu, Apr 13, 2017 at 04:54:42AM +0800, kbuild test robot wrote:
> drivers/pwm/pwm-mediatek.c:210: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: John Crispin <john@phrozen.org>
> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
> ---
>
> pwm-mediatek.c | 1 -
> 1 file changed, 1 deletion(-)
Applied, with a slightly modified subject.
Thanks,
Thierry
[-- 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-04-13 15:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <201704130438.qZYSDVF1%fengguang.wu@intel.com>
2017-04-12 20:54 ` [PATCH] pwm: fix platform_no_drv_owner.cocci warnings kbuild test robot
2017-04-13 15:28 ` Thierry Reding
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).