Skip to contentSkip to conversation

drm/tilcdc: panel: fix platform_no_drv_owner.cocci warnings

PATCH In review Yang Li 2 participants 2 messages Mar 3, 2021 – Mar 21, 2021

Subsystems (3)
lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 drm/tilcdc: panel: fix platform_no_drv_owner.cocci warnings

./drivers/gpu/drm/tilcdc/tilcdc_panel.c:402:3-8: No need to set .owner here. The core will do it.

Remove .owner field if calls are used which set it automatically

---
 drivers/gpu/drm/tilcdc/tilcdc_panel.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/tilcdc/tilcdc_panel.c +0 -1
index 00efc30..4235780 100644
@@ -399,7 +399,6 @@ static int panel_remove(struct platform_device *pdev)
 	.probe = panel_probe,
 	.remove = panel_remove,
 	.driver = {
-		.owner = THIS_MODULE,
 		.name = "tilcdc-panel",
 		.of_match_table = panel_of_match,
 	},
Signature · 6 lines
1.8.3.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Yang Li

./drivers/gpu/drm/tilcdc/tilcdc_panel.c:402:3-8: No need to set .owner here. The core will do it.

Remove .owner field if calls are used which set it automatically

I'll merge this soon to drm-misc-next.

Best regards,
Jyri

Quoted 17 lines
---
 drivers/gpu/drm/tilcdc/tilcdc_panel.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/tilcdc/tilcdc_panel.c +0 -1
index 00efc30..4235780 100644
@@ -399,7 +399,6 @@ static int panel_remove(struct platform_device 
 *pdev)
 	.probe = panel_probe,
 	.remove = panel_remove,
 	.driver = {
-		.owner = THIS_MODULE,
 		.name = "tilcdc-panel",
 		.of_match_table = panel_of_match,
Quoted 1 line

},

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