Check EOPNOTSUPP for disabled helper function as the change in phy core.

Signed-off-by: Inochi Amaoto <[email protected]>
---
 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c 
b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
index 30c0c0b41d5a..8e26cd772482 100644
--- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
+++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
@@ -1360,7 +1360,7 @@ analogix_dp_probe(struct device *dev, struct 
analogix_dp_plat_data *plat_data)
                         * phy itself is not enabled, so we can move forward
                         * assigning NULL to phy pointer.
                         */
-                       if (ret == -ENOSYS || ret == -ENODEV)
+                       if (ret == -EOPNOTSUPP || ret == -ENODEV)
                                dp->phy = NULL;
                        else
                                return ERR_PTR(ret);
-- 
2.55.0

Reply via email to