mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
phy: phy-rockchip-mipi-rx: increase the check whether the sensor is null
Change-Id: Ic80a97e5bf195ee236f7869755b88e825e57744e Signed-off-by: Xu Hongfei <xuhf@rock-chips.com>
This commit is contained in:
@@ -728,8 +728,10 @@ static int mipidphy_g_mbus_config(struct v4l2_subdev *sd,
|
||||
struct v4l2_subdev *sensor_sd = get_remote_sensor(sd);
|
||||
struct mipidphy_sensor *sensor = sd_to_sensor(priv, sensor_sd);
|
||||
|
||||
mipidphy_update_sensor_mbus(sd);
|
||||
*config = sensor->mbus;
|
||||
if (sensor_sd) {
|
||||
mipidphy_update_sensor_mbus(sd);
|
||||
*config = sensor->mbus;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user