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: Puneeth Prabhu <quic_pprabh@quicinc.com>
This commit is contained in:
parent
47c49627af
commit
33daf14122
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user