Message ID | 8c356ba6-62a3-033d-f3d6-75e1bab1814f@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/media/platform/qcom/camss-8x16/camss-csid.c b/drivers/media/platform/qcom/camss-8x16/camss-csid.c index 92d4dc6b4a66..ffda0fbfe4d8 100644 --- a/drivers/media/platform/qcom/camss-8x16/camss-csid.c +++ b/drivers/media/platform/qcom/camss-8x16/camss-csid.c @@ -317,10 +317,10 @@ static int csid_reset(struct csid_device *csid) static int csid_set_power(struct v4l2_subdev *sd, int on) { struct csid_device *csid = v4l2_get_subdevdata(sd); - struct device *dev = to_device_index(csid, csid->id); int ret; if (on) { + struct device *dev = to_device_index(csid, csid->id); u32 hw_version; ret = regulator_enable(csid->vdda);