]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/irq-imx-gpcv2: Fix spinlock initialization
authorTyler Baker <tyler.baker@linaro.org>
Thu, 13 Apr 2017 22:27:31 +0000 (15:27 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 14 Apr 2017 08:55:05 +0000 (10:55 +0200)
commit2ad6c67e7644a12fadd6d41c93c1a41830de1221
tree2ddb89866bc5c22a4d3e8a707c7cdd4a902c6c67
parent89edc2943176216de59c1836fd1c281a6954ad87
irqchip/irq-imx-gpcv2: Fix spinlock initialization

The raw_spinlock in the IMX GPCV2 interupt chip is not initialized before
usage. That results in a lockdep splat:

  INFO: trying to register non-static key.
  the code is fine but needs lockdep annotation.
  turning off the locking correctness validator.

Add the missing raw_spin_lock_init() to the setup code.

Fixes: 8f6b522127b2 ("irqchip/imx-gpcv2: IMX GPCv2 driver for wakeup sources")
Signed-off-by: Tyler Baker <tyler.baker@linaro.org>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Cc: jason@lakedaemon.net
Cc: marc.zyngier@arm.com
Cc: shawnguo@kernel.org
Cc: andrew.smirnov@gmail.com
Cc: linux-arm-kernel@lists.infradead.org
Cc: stable@vger.kernel.org
Link: http://lkml.kernel.org/r/20170413222731.5917-1-tyler.baker@linaro.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/irqchip/irq-imx-gpcv2.c