diff --git a/kernel/realsense/d4xx.c b/kernel/realsense/d4xx.c index d4bb95f7..f5774f61 100644 --- a/kernel/realsense/d4xx.c +++ b/kernel/realsense/d4xx.c @@ -5804,7 +5804,7 @@ static int ds5_dfu_device_open(struct inode *inode, struct file *file) #ifdef CONFIG_TEGRA_CAMERA_PLATFORM /* get i2c controller and set dfu bus clock rate */ while (parent && i2c_parent_is_i2c_adapter(parent)) - parent = i2c_parent_is_i2c_adapter(state->client->adapter); + parent = i2c_parent_is_i2c_adapter(parent); if (!parent) { mutex_unlock(&state->lock); @@ -5956,7 +5956,7 @@ static int ds5_dfu_device_release(struct inode *inode, struct file *file) #ifdef CONFIG_TEGRA_CAMERA_PLATFORM /* get i2c controller and restore bus clock rate */ while (parent && i2c_parent_is_i2c_adapter(parent)) - parent = i2c_parent_is_i2c_adapter(state->client->adapter); + parent = i2c_parent_is_i2c_adapter(parent); if (!parent) { mutex_unlock(&state->lock); return 0;