Skip to content

Commit c9bb863

Browse files
atenartKAGA-KOKO
authored andcommitted
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: a68a63c ("irqchip/irq-mvebu-gicp: Add new driver for Marvell GICP") Signed-off-by: Antoine Tenart <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: [email protected] Acked-by: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected]
1 parent 287683d commit c9bb863

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/irqchip/irq-mvebu-gicp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ static int mvebu_gicp_probe(struct platform_device *pdev)
194194
return -ENOMEM;
195195

196196
gicp->dev = &pdev->dev;
197+
spin_lock_init(&gicp->spi_lock);
197198

198199
gicp->res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
199200
if (!gicp->res)

0 commit comments

Comments
 (0)