[media] imx074: fix error handling for failed async subdevice registration

If v4l2_async_register_subdev() fails, don't skip the clean up.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
Guennadi Liakhovetski 2013-04-18 18:35:23 -03:00 committed by Mauro Carvalho Chehab
parent 1bfa6e0d1f
commit 507fcd3da2

View File

@ -451,7 +451,9 @@ static int imx074_probe(struct i2c_client *client,
if (ret < 0)
goto eprobe;
return v4l2_async_register_subdev(&priv->subdev);
ret = v4l2_async_register_subdev(&priv->subdev);
if (!ret)
return 0;
epwrinit:
eprobe: