Commit f9a0b142 authored by Rajmohan Mani's avatar Rajmohan Mani Committed by Mauro Carvalho Chehab

media: dw9714: Fix error handling in probe function

Fixed the case where v4l2_async_unregister_subdev()
is called unnecessarily in the error handling path
in probe function.
Signed-off-by: default avatarRajmohan Mani <rajmohan.mani@intel.com>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent 557c97b5
...@@ -169,7 +169,8 @@ static int dw9714_probe(struct i2c_client *client) ...@@ -169,7 +169,8 @@ static int dw9714_probe(struct i2c_client *client)
return 0; return 0;
err_cleanup: err_cleanup:
dw9714_subdev_cleanup(dw9714_dev); v4l2_ctrl_handler_free(&dw9714_dev->ctrls_vcm);
media_entity_cleanup(&dw9714_dev->sd.entity);
dev_err(&client->dev, "Probe failed: %d\n", rval); dev_err(&client->dev, "Probe failed: %d\n", rval);
return rval; return rval;
} }
......
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