aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/phy/phy.c
diff options
context:
space:
mode:
authorKaan Külahlı <kaankulahli@gmail.com>2017-05-25 19:54:16 +0300
committerGitHub <noreply@github.com>2017-05-25 19:54:16 +0300
commit943acc22babac805296a8d6de42f424f8c00df5a (patch)
treeb710cb20d9b8c1e50a7705564ed08a968eb4c163 /drivers/usb/phy/phy.c
parent6f93f25b482cb3833bad393a2f4cde8a0d1a69ca (diff)
parent14f0a97da192d0cf20ae234389925827d9c2c119 (diff)
Merge pull request #3 from kernel-hut/cm-14.1HEADn7.1
pull request
Diffstat (limited to 'drivers/usb/phy/phy.c')
-rw-r--r--drivers/usb/phy/phy.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/phy/phy.c b/drivers/usb/phy/phy.c
index a9984c700d2..a3684f7908e 100644
--- a/drivers/usb/phy/phy.c
+++ b/drivers/usb/phy/phy.c
@@ -329,6 +329,8 @@ int usb_add_phy(struct usb_phy *x, enum usb_phy_type type)
return -EINVAL;
}
+ ATOMIC_INIT_NOTIFIER_HEAD(&x->notifier);
+
spin_lock_irqsave(&phy_lock, flags);
list_for_each_entry(phy, &phy_list, head) {
@@ -367,6 +369,8 @@ int usb_add_phy_dev(struct usb_phy *x)
return -EINVAL;
}
+ ATOMIC_INIT_NOTIFIER_HEAD(&x->notifier);
+
spin_lock_irqsave(&phy_lock, flags);
list_for_each_entry(phy_bind, &phy_bind_list, list)
if (!(strcmp(phy_bind->phy_dev_name, dev_name(x->dev))))