soc: mediatek: fix the mistaken pointer accessed when subdomains are added
authorSean Wang <sean.wang@mediatek.com>
Thu, 8 Feb 2018 18:07:59 +0000 (02:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Apr 2018 07:36:28 +0000 (09:36 +0200)
commit1b3d2e7a34095edb8ff104961bdc403f8d36e405
tree01c213733a795b7079445b8bab4e40687dd08a99
parent3f306336cdee80f830c46a768c08daf90a31e972
soc: mediatek: fix the mistaken pointer accessed when subdomains are added

commit 73ce2ce129783813e1ebc37d2c757fe5e0fab1ef upstream.

Fix the pointer to struct scp_subdomian not being moved forward
when each sub-domain is expected to be iteratively added through
pm_genpd_add_subdomain call.

Cc: stable@vger.kernel.org
Fixes: 53fddb1a66dd ("soc: mediatek: reduce code duplication of scpsys_probe across all SoCs")
Reported-by: Weiyi Lu <weiyi.lu@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/soc/mediatek/mtk-scpsys.c