Skip to contentSkip to conversation

drm/bridge: lt8912b: fix platform_no_drv_owner.cocci warnings

PATCH In review Zou Wei 2 participants 2 messages May 27, 2021

Subsystems (4)
lore
Share & tools
lore

Zou Wei

author
#0 lore raw

PATCH 1/1 drm/bridge: lt8912b: fix platform_no_drv_owner.cocci warnings

./drivers/gpu/drm/bridge/lontium-lt8912b.c:758: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

---
 drivers/gpu/drm/bridge/lontium-lt8912b.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/bridge/lontium-lt8912b.c +0 -1
index 443f1b4..34baa82 100644
@@ -755,7 +755,6 @@ static struct i2c_driver lt8912_i2c_driver = {
 	.driver = {
 		.name = "lt8912",
 		.of_match_table = lt8912_dt_match,
-		.owner = THIS_MODULE,
 	},
 	.probe = lt8912_probe,
 	.remove = lt8912_remove,
Signature · 1 line
2.6.2
#1 lore raw

Reviewed & pushed to drm-misc-next.

Quoted 28 lines · Zou Wei

./drivers/gpu/drm/bridge/lontium-lt8912b.c:758: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

---
 drivers/gpu/drm/bridge/lontium-lt8912b.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/bridge/lontium-lt8912b.c +0 -2
index 443f1b4..34baa82 100644
@@ -755,7 +755,6 @@ static struct i2c_driver lt8912_i2c_driver = {
        .driver = {
                .name = "lt8912",
                .of_match_table = lt8912_dt_match,
-               .owner = THIS_MODULE,
        },
        .probe = lt8912_probe,
        .remove = lt8912_remove,
--

2.6.2