drm/bridge: anx7625: Fix null vs IS_ERR() checking in anx7625_register_i2c_dummy_clients
authorMiaoqian Lin <linmq006@gmail.com>
Wed, 22 Dec 2021 08:33:48 +0000 (08:33 +0000)
committerRobert Foss <robert.foss@linaro.org>
Tue, 4 Jan 2022 14:30:11 +0000 (15:30 +0100)
commitf5f05ddc37e0445567e4a2369b73ecf9ee2e187d
tree6de8b7ec1da909f6f6da7cf25eb800529e1f3dff
parent7020449b8f5ac0f7444a584645edec02f7168f1a
drm/bridge: anx7625: Fix null vs IS_ERR() checking in anx7625_register_i2c_dummy_clients

Since i2c_new_client_device() function return error pointers.
The i2c_new_dummy_device() function does not return NULL, It returns error
pointers too. Using IS_ERR() to check the return value to fix this.

Fixes: 8bdfc5dae4e3("drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20211222083350.18514-1-linmq006@gmail.com
Reviewed-by: Robert Foss <robert.foss@linaro.org>
drivers/gpu/drm/bridge/analogix/anx7625.c