Skip to contentSkip to conversation

mmc: cb710 core: Add missing spin_lock_init for irq_lock of struct cb710_chip

PATCH In review Axel Lin 2 participants 2 messages Feb 1, 2012

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 mmc: cb710 core: Add missing spin_lock_init for irq_lock of struct cb710_chip

---
 drivers/misc/cb710/core.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/misc/cb710/core.c +1 -0
index 68cd05b..85cc7710 100644
@@ -245,6 +245,7 @@ static int __devinit cb710_probe(struct pci_dev *pdev,
 	if (err)
 		return err;
 
+	spin_lock_init(&chip->irq_lock);
 	chip->pdev = pdev;
 	chip->iobase = pcim_iomap_table(pdev)[0];
 
Signature · 1 line
1.7.5.4
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · Axel Lin
---
 drivers/misc/cb710/core.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/misc/cb710/core.c +0 -0
index 68cd05b..85cc7710 100644

drivers/misc/cb710/core.c static int __devinit cb710_probe(struct pci_dev *pdev, · line 251

Quoted 7 lines
drivers/misc/cb710/core.c +1 -0
@@ -245,6 +245,7 @@ static int __devinit cb710_probe(struct pci_dev *pdev,
 	if (err)
 		return err;
 
+	spin_lock_init(&chip->irq_lock);
 	chip->pdev = pdev;
 	chip->iobase = pcim_iomap_table(pdev)[0];
 

This is -stable material for those using lockdep daily.

Best Regards,
Michał Mirosław