Commit bd1ed17d authored by Sakari Ailus's avatar Sakari Ailus Committed by Mauro Carvalho Chehab
Browse files

media: ccs: Fix return value from probe



rval wasn't set, resulting in probe returning zero instead of an error.

Fixes: de10c161 ("[media] smiapp: Get clock rate if it's not available through DT")
Reported-by: default avatarZhang Changzhong <zhangchangzhong@huawei.com>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 747d2305
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3030,7 +3030,7 @@ static int ccs_probe(struct i2c_client *client)
				dev_err(&client->dev,
					"can't set clock freq, asked for %u but got %lu\n",
					sensor->hwcfg.ext_clk, rate);
				return rval;
				return -EINVAL;
			}
		} else {
			sensor->hwcfg.ext_clk = clk_get_rate(sensor->ext_clk);