summaryrefslogtreecommitdiff
path: root/drivers/video/rockchip/rk3399_mipi.c
diff options
context:
space:
mode:
authorPunit Agrawal <punit.agrawal@arm.com>2018-03-19 17:36:08 +0000
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2018-03-28 23:44:58 +0200
commita89c725d2c6082e42be2ff59a48c967974ead77f (patch)
tree50130984293f7dad33a1277858ec3413c57b9f3a /drivers/video/rockchip/rk3399_mipi.c
parentfca10453cf51a34ddd0e6bf9c509cdabaa3d1f85 (diff)
video: rk3399_mipi: Combine NULL check into IS_ERR_OR_NULL()
Signed-off-by: Punit Agrawal <punit.agrawal@arm.com> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Diffstat (limited to 'drivers/video/rockchip/rk3399_mipi.c')
-rw-r--r--drivers/video/rockchip/rk3399_mipi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/rockchip/rk3399_mipi.c b/drivers/video/rockchip/rk3399_mipi.c
index c6987ff042..b936fcec9b 100644
--- a/drivers/video/rockchip/rk3399_mipi.c
+++ b/drivers/video/rockchip/rk3399_mipi.c
@@ -128,7 +128,7 @@ static int rk_mipi_ofdata_to_platdata(struct udevice *dev)
struct rk_mipi_priv *priv = dev_get_priv(dev);
priv->grf = syscon_get_first_range(ROCKCHIP_SYSCON_GRF);
- if (!priv->grf || IS_ERR(priv->grf)) {
+ if (IS_ERR_OR_NULL(priv->grf)) {
debug("%s: Get syscon grf failed (ret=%p)\n",
__func__, priv->grf);
return -ENXIO;