From: Ondrej Jirman Date: Fri, 20 Sep 2019 17:29:14 +0000 (+0200) Subject: drm: Remove redundant of_device_is_available check X-Git-Tag: v5.5-rc1~128^2~31^2~72 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=21185a668787e6673497cb032ecc9ad08c3fcbaf;p=thirdparty%2Fkernel%2Flinux.git drm: Remove redundant of_device_is_available check This check is already performed by of_graph_get_remote_node. No need to repeat it immediately after the call. Signed-off-by: Ondrej Jirman Signed-off-by: Sean Paul Link: https://patchwork.freedesktop.org/patch/msgid/20190920172914.4015180-1-megous@megous.com --- diff --git a/drivers/gpu/drm/drm_of.c b/drivers/gpu/drm/drm_of.c index 43d89dd59c6b1..0ca58803ba46f 100644 --- a/drivers/gpu/drm/drm_of.c +++ b/drivers/gpu/drm/drm_of.c @@ -250,11 +250,6 @@ int drm_of_find_panel_or_bridge(const struct device_node *np, if (!remote) return -ENODEV; - if (!of_device_is_available(remote)) { - of_node_put(remote); - return -ENODEV; - } - if (panel) { *panel = of_drm_find_panel(remote); if (!IS_ERR(*panel))