Skip to contentSkip to conversation

reset: ath79: Fix missing spin_lock_init

PATCH Applied Axel Lin 3 participants 3 messages Sep 1, 2015 Reset controller framework

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 reset: ath79: Fix missing spin_lock_init

---
 drivers/reset/reset-ath79.c | 1 +
 1 file changed, 1 insertion(+)
drivers/reset/reset-ath79.c +1 -0
index d2d2904..9aaf646 100644
@@ -89,6 +89,7 @@ static int ath79_reset_probe(struct platform_device *pdev)
 	if (IS_ERR(ath79_reset->base))
 		return PTR_ERR(ath79_reset->base);
 
+	spin_lock_init(&ath79_reset->lock);
 	ath79_reset->rcdev.ops = &ath79_reset_ops;
 	ath79_reset->rcdev.owner = THIS_MODULE;
 	ath79_reset->rcdev.of_node = pdev->dev.of_node;
Signature · 1 line
2.1.0
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · On Tue, 01 Sep 2015 20:15:10 +0800 Axel Lin <[email protected]> wrote:
---
 drivers/reset/reset-ath79.c | 1 +
 1 file changed, 1 insertion(+)
drivers/reset/reset-ath79.c +0 -0
index d2d2904..9aaf646 100644

drivers/reset/reset-ath79.c static int ath79_reset_probe(struct platform_device · line 95

Quoted 7 lines
drivers/reset/reset-ath79.c +1 -0
@@ -89,6 +89,7 @@ static int ath79_reset_probe(struct platform_device
 *pdev) if (IS_ERR(ath79_reset->base))
 		return PTR_ERR(ath79_reset->base);
 
+	spin_lock_init(&ath79_reset->lock);
 	ath79_reset->rcdev.ops = &ath79_reset_ops;
 	ath79_reset->rcdev.owner = THIS_MODULE;
 	ath79_reset->rcdev.of_node = pdev->dev.of_node;