PCI: mobiveil: Refactor the MEM/IO outbound window initialization
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Fri, 5 Jul 2019 09:56:43 +0000 (17:56 +0800)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 8 Jul 2019 11:28:44 +0000 (12:28 +0100)
commitf97441f4c398b4ae29a4eb8439f9a09fcf26225a
tree2ccf61fb141d61a690237ecb5eea3321fe13c921
parent91347af1c5c32e1fe9a8294a526e1cfdfa7b6ac2
PCI: mobiveil: Refactor the MEM/IO outbound window initialization

Move the resource type check into an if/else block and only
set-up the outbound window for MEM and IO resource. No functional
change intended.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Minghuan Lian <Minghuan.Lian@nxp.com>
drivers/pci/controller/pcie-mobiveil.c