platform/qcom/camss/camss.c
@@ -1836,21 +1836,26 @@ static int camss_probe(struct platform_device *pdev)
}
}
- ret = camss_configure_pd(camss);
+ //ret = camss_configure_pd(camss);
+ ret = -17;
if (ret < 0) {
dev_err(dev, "Failed to configure power domains: %d\n",
ret);
- return ret;
+ goto err_configure_pd;
}
pm_runtime_enable(dev);
return 0;
+err_configure_pd:
+ media_device_unregister(&camss->media_dev);
+ media_device_cleanup(&camss->media_dev);
err_register_subdevs:
camss_unregister_entities(camss);
err_register_entities:
v4l2_device_unregister(&camss->v4l2_dev);
err_cleanup:
+ v4l2_async_nf_unregister(&camss->notifier);
v4l2_async_nf_cleanup(&camss->notifier);