Commit b74117bb authored by Bob Beckett's avatar Bob Beckett
Browse files

media/wave5: fix vpu probe error path


Signed-off-by: Bob Beckett's avatarRobert Beckett <bob.beckett@collabora.com>
parent 0cf90a46
......@@ -393,7 +393,11 @@ static int vpu_probe(struct platform_device *pdev)
#endif
#ifdef CNM_FPGA_PLATFORM
vdi_init(0);
err = vdi_init(0);
if (err) {
pr_err("%s(): failed to init vdi: %d\n", __func__, err);
goto ERROR_PROVE_DEVICE;
}
vdi_init_fpga(0);
vdi_release(0);
#endif
......@@ -412,7 +416,7 @@ static int vpu_probe(struct platform_device *pdev)
return 0;
ERROR_PROVE_DEVICE:
if (!dev) {
if (dev) {
vpu_dec_unregister_device(dev);
vpu_enc_unregister_device(dev);
v4l2_m2m_release(dev->v4l2_m2m_dev);
......
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