Skip to content

Commit

Permalink
reset: ath79: Fix missing spin_lock_init
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Lin <[email protected]>
Acked-by: Alban Bedel <[email protected]>
Signed-off-by: Philipp Zabel <[email protected]>
  • Loading branch information
AxelLin authored and pH5 committed Sep 1, 2015
1 parent 5bcd0b7 commit f319cb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/reset/reset-ath79.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f319cb8

Please sign in to comment.