Merge "ipq807x: i2c: Fix drive-strength of i2c gpios"
diff --git a/drivers/pci/pci_ipq.c b/drivers/pci/pci_ipq.c
index 6196b9f..061d271 100644
--- a/drivers/pci/pci_ipq.c
+++ b/drivers/pci/pci_ipq.c
@@ -863,10 +863,10 @@
 		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;