Skip to contentSkip to conversation

input/keyboard: fix platform_no_drv_owner.cocci warnings

PATCH In review Julia Lawall 3 participants 4 messages Aug 20, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 input/keyboard: fix platform_no_drv_owner.cocci warnings

No need to set .owner here. The core will do it.

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Fixes 52cf590518d7 ("input/keyboard: Add support for Dollar Cove TI power button")

---

 dc_ti_pwrbtn.c |    1 -
 1 file changed, 1 deletion(-)
drivers/input/keyboard/dc_ti_pwrbtn.c +0 -1
@@ -75,7 +75,6 @@ static int dc_ti_pwrbtn_probe(struct pla
 static struct platform_driver dc_ti_pwrbtn_driver = {
 	.driver = {
 		.name = DRIVER_NAME,
-		.owner = THIS_MODULE,
 	},
 	.probe	= dc_ti_pwrbtn_probe,
 };
maintainer
#1 lore raw
Quoted 10 lines · Julia Lawall

No need to set .owner here. The core will do it.

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Fixes 52cf590518d7 ("input/keyboard: Add support for Dollar Cove TI power button")

---

 dc_ti_pwrbtn.c |    1 -

Hm, this driver is neither in my tree nor in next; where is it coming from?

Quoted 12 lines
 1 file changed, 1 deletion(-)
drivers/input/keyboard/dc_ti_pwrbtn.c +0 -1
@@ -75,7 +75,6 @@ static int dc_ti_pwrbtn_probe(struct pla
 static struct platform_driver dc_ti_pwrbtn_driver = {
 	.driver = {
 		.name = DRIVER_NAME,
-		.owner = THIS_MODULE,
 	},
 	.probe	= dc_ti_pwrbtn_probe,
 };
Signature · 1 line
Dmitry
#2 lore raw
Quoted 10 lines · Dmitry Torokhov
Quoted 9 lines · Julia Lawall

No need to set .owner here. The core will do it.

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Fixes 52cf590518d7 ("input/keyboard: Add support for Dollar Cove TI power button")

---

Quoted 4 lines
Quoted 1 line
 dc_ti_pwrbtn.c |    1 -

Hm, this driver is neither in my tree nor in next; where is it coming from?

Sorry, it's a kbuild message and I seem to have deleted the message with that information...

julia

Quoted 17 lines

drivers/input/keyboard/dc_ti_pwrbtn.c static int dc_ti_pwrbtn_probe(struct pla · line 80

Quoted 13 lines
 1 file changed, 1 deletion(-)
drivers/input/keyboard/dc_ti_pwrbtn.c +0 -1
@@ -75,7 +75,6 @@ static int dc_ti_pwrbtn_probe(struct pla
 static struct platform_driver dc_ti_pwrbtn_driver = {
 	.driver = {
 		.name = DRIVER_NAME,
-		.owner = THIS_MODULE,
 	},
 	.probe	= dc_ti_pwrbtn_probe,
 };

--
Dmitry

#3 lore raw
In reply to Dmitry Torokhov
Quoted 11 lines · Dmitry Torokhov
Quoted 9 lines · Julia Lawall

No need to set .owner here. The core will do it.

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Fixes 52cf590518d7 ("input/keyboard: Add support for Dollar Cove TI power button")

---

Quoted 4 lines
Quoted 1 line
 dc_ti_pwrbtn.c |    1 -

Hm, this driver is neither in my tree nor in next; where is it coming from?

It's only in my tree for testing, but kbuild bot takes all branches unconditionally, so...

In anyway, I hope I can submit sooner or later :)

Takashi

Quoted 17 lines
Quoted 13 lines
 1 file changed, 1 deletion(-)
drivers/input/keyboard/dc_ti_pwrbtn.c +0 -1
@@ -75,7 +75,6 @@ static int dc_ti_pwrbtn_probe(struct pla
 static struct platform_driver dc_ti_pwrbtn_driver = {
 	.driver = {
 		.name = DRIVER_NAME,
-		.owner = THIS_MODULE,
 	},
 	.probe	= dc_ti_pwrbtn_probe,
 };
Signature · 1 line
Dmitry