spl: Init proper struct driver member (platdata_auto_alloc_size) for mxs_spi
[oweals/u-boot.git] / lib / fdtdec.c
index 74525c84e7bd946920ddcef7efc27ddd32912266..74430c8b2ffd219fd0b1099177f4ca4503eecaac 100644 (file)
@@ -217,7 +217,7 @@ int fdtdec_get_pci_addr(const void *blob, int node, enum fdt_pci_space type,
                        if ((fdt32_to_cpu(*cell) & type) == type) {
                                addr->phys_hi = fdt32_to_cpu(cell[0]);
                                addr->phys_mid = fdt32_to_cpu(cell[1]);
-                               addr->phys_lo = fdt32_to_cpu(cell[1]);
+                               addr->phys_lo = fdt32_to_cpu(cell[2]);
                                break;
                        }