Commit b41e7956 authored by Enrico Scholz's avatar Enrico Scholz

onsemi: ar0144: changed initialization order

onsemi_core_init() requires now some attributes
Signed-off-by: Enrico Scholz's avatarEnrico Scholz <enrico.scholz@sigma-chemnitz.de>
parent 110c3331
......@@ -111,14 +111,14 @@ static int ar0144_probe(struct i2c_client *i2c, struct i2c_device_id const *did)
if (!sensor)
return -ENOMEM;
rc = onsemi_core_init(i2c, &sensor->core, cfg);
if (rc < 0)
goto out;
sensor->core.v4l_parm = &sensor->v4l_parm.core;
sensor->core.pll_cfg = &sensor->pll_cfg;
sensor->core.pll_freq = &sensor->pll_freq;
rc = onsemi_core_init(i2c, &sensor->core, cfg);
if (rc < 0)
goto out;
if (onsemi_has_mipi(&sensor->core)) {
rc = ar0144_read_mipi_timings(sensor);
if (rc < 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment