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

Commit bda4f7be authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "extcon: Initialize blocking notifier while registering"

parents be1e623c 16fee6ee
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1324,8 +1324,10 @@ int extcon_dev_register(struct extcon_dev *edev)
		goto err_dev;
	}

	for (index = 0; index < edev->max_supported; index++)
	for (index = 0; index < edev->max_supported; index++) {
		RAW_INIT_NOTIFIER_HEAD(&edev->nh[index]);
		BLOCKING_INIT_NOTIFIER_HEAD(&edev->bnh[index]);
	}

	RAW_INIT_NOTIFIER_HEAD(&edev->nh_all);