mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
video: rk3288_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>
This commit is contained in:
parent
0ea91c3240
commit
6e60779156
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,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;
|
||||
|
|
Loading…
Reference in a new issue