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

Commit 33daf141 authored by Puneeth Prabhu's avatar Puneeth Prabhu
Browse files

drivers: soc: qcom: Initialize blocking notifier as per lockdep



Initialize fsa4480 blocking notifier chain head as per the
lockdep annotation to fix the warnings with LOCKDEP enabled.

Change-Id: I771b0d9e1a9c1d28cd9b5bee2d7695ff95178db9
Signed-off-by: default avatarPuneeth Prabhu <quic_pprabh@quicinc.com>
parent 47c49627
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -402,10 +402,7 @@ static int fsa4480_probe(struct i2c_client *i2c,
	INIT_WORK(&fsa_priv->usbc_analog_work,
		  fsa4480_usbc_analog_work_fn);

	fsa_priv->fsa4480_notifier.rwsem =
		(struct rw_semaphore)__RWSEM_INITIALIZER
		((fsa_priv->fsa4480_notifier).rwsem);
	fsa_priv->fsa4480_notifier.head = NULL;
	BLOCKING_INIT_NOTIFIER_HEAD(&fsa_priv->fsa4480_notifier);

	return 0;