projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d576e5e
)
drm/bridge: it66121: Remove a duplicated invoke of of_device_is_available()
author
Sui Jingfeng
<sui.jingfeng@linux.dev>
Sat, 16 Mar 2024 17:44:19 +0000
(
01:44
+0800)
committer
Neil Armstrong
<neil.armstrong@linaro.org>
Mon, 18 Mar 2024 15:16:20 +0000
(16:16 +0100)
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>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link:
https://lore.kernel.org/r/20240316174419.1170460-1-sui.jingfeng@linux.dev
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link:
https://patchwork.freedesktop.org/patch/msgid/20240316174419.1170460-1-sui.jingfeng@linux.dev
drivers/gpu/drm/bridge/ite-it66121.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/bridge/ite-it66121.c
b/drivers/gpu/drm/bridge/ite-it66121.c
index 0528840586448e8086eae36d92c7483d6f5d502d..925e42f46cd87feb30959ec8b2a8e48f5da90a1b 100644
(file)
--- 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) {