memory: atmel-ebi: Add missing ->numcs assignment
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Thu, 16 Mar 2017 08:30:33 +0000 (09:30 +0100)
committerLee Jones <lee.jones@linaro.org>
Thu, 27 Apr 2017 08:25:06 +0000 (09:25 +0100)
ebid->numcs is never assigned, set it to numcs after allocating the
EBI dev object.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/memory/atmel-ebi.c

index 8beba9a60d1c9a4862eaed4cc8657f42d56714a7..7d24a957e98c6d5b5f9e077b6478415ea8d1c832 100644 (file)
@@ -332,6 +332,7 @@ static int atmel_ebi_dev_setup(struct atmel_ebi *ebi, struct device_node *np,
                return -ENOMEM;
 
        ebid->ebi = ebi;
+       ebid->numcs = numcs;
 
        ret = caps->xlate_config(ebid, np, &conf);
        if (ret < 0)