Skip to contentSkip to conversation

drm: dw-hdmi-i2s: Remove owner assignment from platform_driver

PATCH Applied Fabio Estevam 2 participants 3 messages Mar 15, 2018 – Apr 23, 2018

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

PATCH 1/1 drm: dw-hdmi-i2s: Remove owner assignment from platform_driver

From: Fabio Estevam <[email protected]>

platform_driver does not need to set the owner field, as this will be populated by the driver core.

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

---
 drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c +0 -1
index 3b7e5c5..8f9c8a6 100644
@@ -152,7 +152,6 @@ static struct platform_driver snd_dw_hdmi_driver = {
 	.remove	= snd_dw_hdmi_remove,
 	.driver	= {
 		.name = DRIVER_NAME,
-		.owner = THIS_MODULE,
 	},
 };
 module_platform_driver(snd_dw_hdmi_driver);
Signature · 6 lines
2.7.4

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

Andrzej/Archit,

Any comments?

Quoted 25 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

platform_driver does not need to set the owner field, as this will be populated by the driver core.

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

---
 drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c +0 -2
index 3b7e5c5..8f9c8a6 100644
@@ -152,7 +152,6 @@ static struct platform_driver snd_dw_hdmi_driver = {
        .remove = snd_dw_hdmi_remove,
        .driver = {
                .name = DRIVER_NAME,
-               .owner = THIS_MODULE,
        },
 };
 module_platform_driver(snd_dw_hdmi_driver);
--
Quoted 2 lines

2.7.4

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
Quoted 3 lines · Fabio Estevam

Andrzej/Archit,

Any comments?

My mail filter somehow didn't catch it.

Queued to drm-misc-next.

Regards
Andrzej

Quoted 14 lines · Fabio Estevam
Quoted 12 lines

From: Fabio Estevam <[email protected]>

platform_driver does not need to set the owner field, as this will be populated by the driver core.

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

---
 drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c | 1 -
 1 file changed, 1 deletion(-)
Quoted 17 lines
Quoted 13 lines
drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c +0 -2
index 3b7e5c5..8f9c8a6 100644
@@ -152,7 +152,6 @@ static struct platform_driver snd_dw_hdmi_driver = {
        .remove = snd_dw_hdmi_remove,
        .driver = {
                .name = DRIVER_NAME,
-               .owner = THIS_MODULE,
        },
 };
 module_platform_driver(snd_dw_hdmi_driver);
--
Quoted 2 lines

2.7.4

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel