* [PATCH -next] drm/bridge: lt8912b: fix platform_no_drv_owner.cocci warnings
@ 2021-05-27 9:50 Zou Wei
2021-05-27 12:07 ` Robert Foss
0 siblings, 1 reply; 2+ messages in thread
From: Zou Wei @ 2021-05-27 9:50 UTC (permalink / raw)
To: adrien.grassein, a.hajda, narmstrong, robert.foss,
Laurent.pinchart, jonas, jernej.skrabec, airlied, daniel
Cc: dri-devel, linux-kernel, 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
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
---
drivers/gpu/drm/bridge/lontium-lt8912b.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/gpu/drm/bridge/lontium-lt8912b.c b/drivers/gpu/drm/bridge/lontium-lt8912b.c
index 443f1b4..34baa82 100644
--- a/drivers/gpu/drm/bridge/lontium-lt8912b.c
+++ b/drivers/gpu/drm/bridge/lontium-lt8912b.c
@@ -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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] drm/bridge: lt8912b: fix platform_no_drv_owner.cocci warnings
2021-05-27 9:50 [PATCH -next] drm/bridge: lt8912b: fix platform_no_drv_owner.cocci warnings Zou Wei
@ 2021-05-27 12:07 ` Robert Foss
0 siblings, 0 replies; 2+ messages in thread
From: Robert Foss @ 2021-05-27 12:07 UTC (permalink / raw)
To: Zou Wei
Cc: Adrien Grassein, Andrzej Hajda, Neil Armstrong, Laurent Pinchart,
Jonas Karlman, Jernej Skrabec, David Airlie, Daniel Vetter,
dri-devel, linux-kernel
Reviewed & pushed to drm-misc-next.
On Thu, 27 May 2021 at 11:31, Zou Wei <zou_wei@huawei.com> wrote:
>
> ./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
>
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: Zou Wei <zou_wei@huawei.com>
> ---
> drivers/gpu/drm/bridge/lontium-lt8912b.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/bridge/lontium-lt8912b.c b/drivers/gpu/drm/bridge/lontium-lt8912b.c
> index 443f1b4..34baa82 100644
> --- a/drivers/gpu/drm/bridge/lontium-lt8912b.c
> +++ b/drivers/gpu/drm/bridge/lontium-lt8912b.c
> @@ -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
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-27 12:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-27 9:50 [PATCH -next] drm/bridge: lt8912b: fix platform_no_drv_owner.cocci warnings Zou Wei
2021-05-27 12:07 ` Robert Foss
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).