* [PATCH] drm/bridge: it66121: Remove a duplicated invoke of of_device_is_available()
@ 2024-03-16 17:44 Sui Jingfeng
2024-03-16 17:45 ` Dmitry Baryshkov
2024-03-18 15:23 ` Neil Armstrong
0 siblings, 2 replies; 3+ messages in thread
From: Sui Jingfeng @ 2024-03-16 17:44 UTC (permalink / raw)
To: Phong LE
Cc: Neil Armstrong, Andrzej Hajda, Robert Foss, Laurent Pinchart,
Jonas Karlman, Jernej Skrabec, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Daniel Vetter, dri-devel,
linux-kernel, Sui Jingfeng
The calling of of_device_is_available() in it66121_probe() is duplicated,
as the of_graph_get_remote_node() has already do the check for us. There
is no need to call it again, thus delete the later one.
Signed-off-by: Sui Jingfeng <sui.jingfeng@linux.dev>
---
drivers/gpu/drm/bridge/ite-it66121.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/gpu/drm/bridge/ite-it66121.c b/drivers/gpu/drm/bridge/ite-it66121.c
index 052884058644..925e42f46cd8 100644
--- a/drivers/gpu/drm/bridge/ite-it66121.c
+++ b/drivers/gpu/drm/bridge/ite-it66121.c
@@ -1540,12 +1540,6 @@ static int it66121_probe(struct i2c_client *client)
return -EINVAL;
}
- if (!of_device_is_available(ep)) {
- of_node_put(ep);
- dev_err(ctx->dev, "The remote device is disabled\n");
- return -ENODEV;
- }
-
ctx->next_bridge = of_drm_find_bridge(ep);
of_node_put(ep);
if (!ctx->next_bridge) {
--
2.34.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/bridge: it66121: Remove a duplicated invoke of of_device_is_available()
2024-03-16 17:44 [PATCH] drm/bridge: it66121: Remove a duplicated invoke of of_device_is_available() Sui Jingfeng
@ 2024-03-16 17:45 ` Dmitry Baryshkov
2024-03-18 15:23 ` Neil Armstrong
1 sibling, 0 replies; 3+ messages in thread
From: Dmitry Baryshkov @ 2024-03-16 17:45 UTC (permalink / raw)
To: Sui Jingfeng
Cc: Phong LE, Neil Armstrong, Andrzej Hajda, Robert Foss,
Laurent Pinchart, Jonas Karlman, Jernej Skrabec,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
David Airlie, Daniel Vetter, dri-devel, linux-kernel
On Sat, 16 Mar 2024 at 19:44, Sui Jingfeng <sui.jingfeng@linux.dev> wrote:
>
> The calling of of_device_is_available() in it66121_probe() is duplicated,
> as the of_graph_get_remote_node() has already do the check for us. There
> is no need to call it again, thus delete the later one.
>
> Signed-off-by: Sui Jingfeng <sui.jingfeng@linux.dev>
> ---
> drivers/gpu/drm/bridge/ite-it66121.c | 6 ------
> 1 file changed, 6 deletions(-)
>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/bridge: it66121: Remove a duplicated invoke of of_device_is_available()
2024-03-16 17:44 [PATCH] drm/bridge: it66121: Remove a duplicated invoke of of_device_is_available() Sui Jingfeng
2024-03-16 17:45 ` Dmitry Baryshkov
@ 2024-03-18 15:23 ` Neil Armstrong
1 sibling, 0 replies; 3+ messages in thread
From: Neil Armstrong @ 2024-03-18 15:23 UTC (permalink / raw)
To: Phong LE, Sui Jingfeng
Cc: Andrzej Hajda, Robert Foss, Laurent Pinchart, Jonas Karlman,
Jernej Skrabec, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Daniel Vetter, dri-devel,
linux-kernel
Hi,
On Sun, 17 Mar 2024 01:44:19 +0800, Sui Jingfeng wrote:
> The calling of of_device_is_available() in it66121_probe() is duplicated,
> as the of_graph_get_remote_node() has already do the check for us. There
> is no need to call it again, thus delete the later one.
>
>
Thanks, Applied to https://gitlab.freedesktop.org/drm/misc/kernel.git (drm-misc-next)
[1/1] drm/bridge: it66121: Remove a duplicated invoke of of_device_is_available()
https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/2c7d26555845ca5fb70353b4b77d8f6c4e32e54c
--
Neil
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-03-18 15:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-16 17:44 [PATCH] drm/bridge: it66121: Remove a duplicated invoke of of_device_is_available() Sui Jingfeng
2024-03-16 17:45 ` Dmitry Baryshkov
2024-03-18 15:23 ` Neil Armstrong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®