MLK-17334: imx8: pm-domains: fix array overflow issue
authorShengjiu Wang <shengjiu.wang@nxp.com>
Wed, 3 Jan 2018 10:22:03 +0000 (18:22 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:52:25 +0000 (14:52 -0500)
commit326bf21986edfe09aa9780d0d987ec0415e4adb8
treec7cf9cc0ee9c365887e7158256b222bf2de9c998
parent441f8693a8e75b4f1515406997381357f3bb2656
MLK-17334: imx8: pm-domains: fix array overflow issue

When the resource id is larger than 512, the wakeup_rsrc_id array
will overflow, then the resource may always power on.
So align the IRQ with resource number to fix the issue.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
drivers/soc/imx/pm-domains.c