[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-c9bb86338a6bb91e4d32db04feb6b8d423e04d06@git.kernel.org>
Date: Tue, 31 Oct 2017 16:39:46 -0700
From: tip-bot for Antoine Tenart <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, antoine.tenart@...e-electrons.com,
tglx@...utronix.de, mingo@...nel.org, hpa@...or.com
Subject: [tip:irq/urgent] irqchip/irq-mvebu-gicp: Add missing spin_lock init
Commit-ID: c9bb86338a6bb91e4d32db04feb6b8d423e04d06
Gitweb: https://git.kernel.org/tip/c9bb86338a6bb91e4d32db04feb6b8d423e04d06
Author: Antoine Tenart <antoine.tenart@...e-electrons.com>
AuthorDate: Wed, 25 Oct 2017 09:23:26 +0200
Committer: Thomas Gleixner <tglx@...utronix.de>
CommitDate: Wed, 1 Nov 2017 00:35:18 +0100
irqchip/irq-mvebu-gicp: Add missing spin_lock init
A spin lock is used in the irq-mvebu-gicp driver, but it is never
initialized. This patch adds the missing spin_lock_init() call in the
driver's probe function.
Fixes: a68a63cb4dfc ("irqchip/irq-mvebu-gicp: Add new driver for Marvell GICP")
Signed-off-by: Antoine Tenart <antoine.tenart@...e-electrons.com>
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
Reviewed-by: gregory.clement@...e-electrons.com
Acked-by: marc.zyngier@....com
Cc: thomas.petazzoni@...e-electrons.com
Cc: andrew@...n.ch
Cc: jason@...edaemon.net
Cc: nadavh@...vell.com
Cc: miquel.raynal@...e-electrons.com
Cc: linux-arm-kernel@...ts.infradead.org
Cc: sebastian.hesselbarth@...il.com
Cc: stable@...r.kernel.org
Link: https://lkml.kernel.org/r/20171025072326.21030-1-antoine.tenart@free-electrons.com
---
drivers/irqchip/irq-mvebu-gicp.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/irqchip/irq-mvebu-gicp.c b/drivers/irqchip/irq-mvebu-gicp.c
index b283fc9..17a4a7b 100644
--- a/drivers/irqchip/irq-mvebu-gicp.c
+++ b/drivers/irqchip/irq-mvebu-gicp.c
@@ -194,6 +194,7 @@ static int mvebu_gicp_probe(struct platform_device *pdev)
return -ENOMEM;
gicp->dev = &pdev->dev;
+ spin_lock_init(&gicp->spi_lock);
gicp->res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!gicp->res)
Powered by blists - more mailing lists