From patchwork Wed Oct 25 07:23:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antoine Tenart X-Patchwork-Id: 10025967 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A749B6032C for ; Wed, 25 Oct 2017 07:25:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 97BAC28B04 for ; Wed, 25 Oct 2017 07:25:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8BE1628B06; Wed, 25 Oct 2017 07:25:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 25C3228B04 for ; Wed, 25 Oct 2017 07:25:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=g0qCxsPFGToWOVwmGlCEND3HErmAdPiSuGAYd+ZCRJ8=; b=nBM tsgiHUsCdhnEJ4C9Chjb+IaEhfT5MUFwgJ6/dawMsH3iK8wkI6VoDvrB0TKIFU5CJeyN9RuP34GkZ HyHTFk6ucr8zG7ZUGBjJ+ggj/deUIDGYgWzayEJSC4XUvKQNTQlQtMd+2DsMEG7FSWxBizWPJ8FjG qfQ6ekc54g159P44e71NdgVaOHrj5K3mFEZWP4n7FuggsksGeyk/MfjZJRPn8Nb6GqgHawTsyUgUy IkxuDhMSTizRIXUu1u3Mg8QzbtjjlUj2UYYiWYQ661gol10UDe5RWClUB9inhvXkmmTohzGnWmngl RBQPfE2br7CD1BXkNi1kMM6H5LZW7uw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e7G4L-0004qV-6Q; Wed, 25 Oct 2017 07:25:41 +0000 Received: from mail.free-electrons.com ([62.4.15.54]) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e7G4G-0004lT-DS for linux-arm-kernel@lists.infradead.org; Wed, 25 Oct 2017 07:25:38 +0000 Received: by mail.free-electrons.com (Postfix, from userid 110) id 81A1920850; Wed, 25 Oct 2017 09:25:10 +0200 (CEST) Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id 55C6320848; Wed, 25 Oct 2017 09:25:00 +0200 (CEST) From: Antoine Tenart To: tglx@linutronix.de, marc.zyngier@arm.com, jason@lakedaemon.net, gregory.clement@free-electrons.com, andrew@lunn.ch, sebastian.hesselbarth@gmail.com, thomas.petazzoni@free-electrons.com Subject: [PATCH] irqchip/irq-mvebu-gicp: add missing spin_lock init Date: Wed, 25 Oct 2017 09:23:26 +0200 Message-Id: <20171025072326.21030-1-antoine.tenart@free-electrons.com> X-Mailer: git-send-email 2.14.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171025_002536_665119_7493BA9D X-CRM114-Status: GOOD ( 10.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: nadavh@marvell.com, Antoine Tenart , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, miquel.raynal@free-electrons.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Gregory CLEMENT Acked-by: Marc Zyngier --- 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 b283fc90be1e..17a4a7b6cdbb 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)