MLK-15009 irqchip: imx-irqsteer: correct type of irqstat
authorPeng Fan <peng.fan@nxp.com>
Mon, 5 Jun 2017 11:47:17 +0000 (19:47 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit8cca71e2d0c52898ade01fc4e6da9c6074284cbb
treedaa9554ee0f608607d3adb760c207c8e817a118c
parent886b4ee00c93a53881242d019f6729fd499b213c
MLK-15009 irqchip: imx-irqsteer: correct type of irqstat

The type of irqstat in irqsteer_irqchip_data unsigned long, actually
it needs to be 32bits width, so use unsigned int.

And use sizeof(irqsteer_data->irqstat[0]), instead of 4 when alloc
memory for irqsteer_data.

for_each_set_bit needs the second param type is unsigned long *, so
cast the irqsteer_data->irqstat to unsigned long *, this is safe here.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Arulpandiyan Vadivel <arulpandiyan_vadivel@mentor.com>
drivers/irqchip/irq-imx-irqsteer.c