ipq807x: Fix PCIE failed in other platform

Change-Id: Ide698e51ce1e9a21efc4c0559750216dd5a48b86
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
This commit is contained in:
Sham Muthayyan 2018-11-13 14:56:51 +05:30 committed by Gerrit - the friendly Code Review server
parent d1673a3783
commit 8fc56d271a

View file

@ -863,10 +863,10 @@ static int ipq_pcie_parse_dt(const void *fdt, int id,
return err;
}
pcie->is_gen3 = 0;
if(pcie->version == PCIE_V2) {
err = fdt_get_named_resource(fdt, node, "reg", "reg-names", "pci_phy",
&pcie->pci_phy);
pcie->is_gen3 = 0;
if (err < 0) {
uint32_t soc_ver_major, soc_ver_minor;
int ret;