pci: layerscape: Modify the EP and RC mode judge method
authorXiaowei Bao <xiaowei.bao@nxp.com>
Fri, 26 Oct 2018 01:56:24 +0000 (09:56 +0800)
committerYork Sun <york.sun@nxp.com>
Thu, 17 Jan 2019 21:17:28 +0000 (13:17 -0800)
commit5bd3c9d5565a40e3494867fa501e45be53d5e49a
tree7e0894bc55538ea890aa596ce56020f341cb3020
parentbae54ac99e4eb96e603821559627c46154a0d8ed
pci: layerscape: Modify the EP and RC mode judge method

Modify the RC and EP mode judge method, save the mode as a variable,
the variable will be used by other function.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
drivers/pci/pcie_layerscape.c
drivers/pci/pcie_layerscape.h