Commit 8938c48f authored by Yang Yingliang's avatar Yang Yingliang Committed by Mauro Carvalho Chehab

media: omap4iss: return error code when omap4iss_get() failed

If omap4iss_get() failed, it need return error code in iss_probe().

Fixes: 59f0ad80 ("[media] v4l: omap4iss: Add support for OMAP4...")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 73605de0
......@@ -1236,8 +1236,10 @@ static int iss_probe(struct platform_device *pdev)
if (ret < 0)
goto error;
if (!omap4iss_get(iss))
if (!omap4iss_get(iss)) {
ret = -EINVAL;
goto error;
}
ret = iss_reset(iss);
if (ret < 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