]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/imx-intmux: Fix irqdata regs save in imx_intmux_runtime_suspend()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 29 Jul 2020 15:58:49 +0000 (23:58 +0800)
committerMarc Zyngier <maz@kernel.org>
Thu, 30 Jul 2020 08:20:48 +0000 (09:20 +0100)
commit3ea45cbdfc7db92566861d9a67b63766601d0f4a
tree0574b73d296e32d6fef1a28774edd9fb019019e8
parent98e2d21de5df612b9ba0a0d6af3834e114da6ed7
irqchip/imx-intmux: Fix irqdata regs save in imx_intmux_runtime_suspend()

Gcc report warning as follows:

drivers/irqchip/irq-imx-intmux.c:316:29: warning:
 variable 'irqchip_data' set but not used [-Wunused-but-set-variable]
  316 |  struct intmux_irqchip_data irqchip_data;
      |                             ^~~~~~~~~~~~

irqdata regs is stored to this variable on the stack in
imx_intmux_runtime_suspend(), which means a nop. this commit
fix to save regs to the right place.

Fixes: 98e2d21de5df ("irqchip/imx-intmux: Implement intmux runtime power management")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200729155849.33919-1-weiyongjun1@huawei.com
drivers/irqchip/irq-imx-intmux.c