Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 490ead79 authored by Ajay Agarwal's avatar Ajay Agarwal
Browse files

phy: msm: usb: Clean up debugfs directory on probe failure



Currently we are not cleaning up the already created debugfs
entry for msm_otg if the msm_otg_probe fails. On the subsequent
probe, fresh debugfs entry is not created for the new msm_otg
since the older one already exists, leading to incorrect access.
Fix this by cleaning up the existing debugfs entry if the probe
fails.

Change-Id: I442f06711dec139c16736a8bc7246d02ce1ab999
Signed-off-by: default avatarAjay Agarwal <ajaya@codeaurora.org>
parent a5370b86
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4110,6 +4110,7 @@ static int msm_otg_probe(struct platform_device *pdev)
remove_cdev:
	pm_runtime_disable(&pdev->dev);
	device_remove_file(&pdev->dev, &dev_attr_dpdm_pulldown_enable);
	msm_otg_debugfs_cleanup();
phy_reg_deinit:
	devm_regulator_unregister(motg->phy.dev, motg->dpdm_rdev);
remove_phy: