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

Commit 8fd8fd2f authored by Bhaumik Bhatt's avatar Bhaumik Bhatt
Browse files

mhi: core: create sysfs nodes before devices



Sysfs nodes should be created before devices as there is no
dependency and reverse order is maintained in device removals.

Change-Id: Ie8c9bb7323a89a1d76d5b016d6060ff9370e03a3
Signed-off-by: default avatarBhaumik Bhatt <bbhatt@codeaurora.org>
parent f8b00cea
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -529,14 +529,14 @@ static int mhi_pm_mission_mode_transition(struct mhi_controller *mhi_cntrl)

	mhi_special_events_pending(mhi_cntrl);

	/* setup sysfs nodes for userspace votes */
	mhi_create_sysfs(mhi_cntrl);

	MHI_LOG("Adding new devices\n");

	/* add supported devices */
	mhi_create_devices(mhi_cntrl);

	/* setup sysfs nodes for userspace votes */
	mhi_create_sysfs(mhi_cntrl);

	read_lock_bh(&mhi_cntrl->pm_lock);

error_mission_mode: