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)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:22:31 +0000 (15:22 -0500)
commit85a1d14ea578f93547cbd872f8b411cab8204576
treecb46c3bd653e3e47b7e8a8a1812674e3a1d1b878
parentba1f7571cb8737973cb7584afa358f76cd83c328
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>
drivers/irqchip/irq-imx-irqsteer.c