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

Commit 9e6f5180 authored by Jack Pham's avatar Jack Pham
Browse files

usb: dwc3-msm: Delete sysfs files on driver remove



This avoids a warning about re-creating sysfs attribute nodes
that already exist when removing/re-probing the driver.

Change-Id: I6aca338cac48388a37343e2458e150706e845660
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 11b286fb
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -4096,6 +4096,8 @@ static int dwc3_msm_remove(struct platform_device *pdev)
	int i, ret_pm;

	device_remove_file(&pdev->dev, &dev_attr_mode);
	device_remove_file(&pdev->dev, &dev_attr_speed);
	device_remove_file(&pdev->dev, &dev_attr_bus_vote);

	if (mdwc->dpdm_nb.notifier_call) {
		regulator_unregister_notifier(mdwc->dpdm_reg, &mdwc->dpdm_nb);