]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spi: stm32_qspi: Align reg-names with kernel 4.12 RC1
authorChristophe Kerello <christophe.kerello@st.com>
Mon, 14 May 2018 13:42:52 +0000 (15:42 +0200)
committerJagan Teki <jagan@amarulasolutions.com>
Wed, 16 May 2018 13:11:21 +0000 (18:41 +0530)
Align qspi bindings following kernel dt-bindings
Documentation/devicetree/bindings/mtd/stm32-quadspi.txt
from kernel v4.12-rc1.

Signed-off-by: Christophe Kerello <christophe.kerello@st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
drivers/spi/stm32_qspi.c

index 4bc4455d2ef99155cbd675d2a553741c71308d6f..fc1a34ea442c94500cd0f92572533a739e7a69f8 100644 (file)
@@ -420,13 +420,13 @@ static int stm32_qspi_ofdata_to_platdata(struct udevice *bus)
        int ret;
 
        ret = fdt_get_named_resource(blob, node, "reg", "reg-names",
-                                    "QuadSPI", &res_regs);
+                                    "qspi", &res_regs);
        if (ret) {
                debug("Error: can't get regs base addresses(ret = %d)!\n", ret);
                return -ENOMEM;
        }
        ret = fdt_get_named_resource(blob, node, "reg", "reg-names",
-                                    "QuadSPI-memory", &res_mem);
+                                    "qspi_mm", &res_mem);
        if (ret) {
                debug("Error: can't get mmap base address(ret = %d)!\n", ret);
                return -ENOMEM;