mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 16:44:58 +02:00
media: i2c: imx214: Reorder imx214_parse_fwnode call
Reorder imx214_parse_fwnode call to reduce goto paths in upcoming patches. No functional change intended. Acked-by: Ricardo Ribalda <ribalda@chromium.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: André Apitzsch <git@apitzsch.eu> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
This commit is contained in:
parent
9fbf2ee81f
commit
4743c1fad0
|
|
@ -1261,10 +1261,6 @@ static int imx214_probe(struct i2c_client *client)
|
|||
struct imx214 *imx214;
|
||||
int ret;
|
||||
|
||||
ret = imx214_parse_fwnode(dev);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
imx214 = devm_kzalloc(dev, sizeof(*imx214), GFP_KERNEL);
|
||||
if (!imx214)
|
||||
return -ENOMEM;
|
||||
|
|
@ -1295,6 +1291,10 @@ static int imx214_probe(struct i2c_client *client)
|
|||
return dev_err_probe(dev, PTR_ERR(imx214->regmap),
|
||||
"failed to initialize CCI\n");
|
||||
|
||||
ret = imx214_parse_fwnode(dev);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
v4l2_i2c_subdev_init(&imx214->sd, client, &imx214_subdev_ops);
|
||||
imx214->sd.internal_ops = &imx214_internal_ops;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user