msm: eva: Clean-up debugfs root
To remove debugfs root in case of failure Change-Id: I8a9a03a45c3a2c1f5b620f55ae0f5745debf3881 Signed-off-by: Aakash Preetam <quic_apreetam@quicinc.com>
This commit is contained in:

committato da
Gerrit - the friendly Code Review server

parent
01c34574ca
commit
adcab3bd3b
@@ -456,6 +456,7 @@ static int msm_probe_cvp_device(struct platform_device *pdev)
|
||||
|
||||
err_fail_sub_device_probe:
|
||||
cvp_hfi_deinitialize(core->hfi_type, core->device);
|
||||
debugfs_remove_recursive(cvp_driver->debugfs_root);
|
||||
err_hfi_initialize:
|
||||
err_cores_exceeded:
|
||||
cdev_del(&core->cdev);
|
||||
@@ -610,7 +611,6 @@ static int __init msm_cvp_init(void)
|
||||
if (rc) {
|
||||
dprintk(CVP_ERR,
|
||||
"Failed to register platform driver\n");
|
||||
debugfs_remove_recursive(cvp_driver->debugfs_root);
|
||||
kfree(cvp_driver);
|
||||
cvp_driver = NULL;
|
||||
return rc;
|
||||
|
Fai riferimento in un nuovo problema
Block a user