summaryrefslogtreecommitdiff
path: root/drivers/memory/atmel-ebi.c
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@free-electrons.com>2017-03-16 09:30:33 +0100
committerLee Jones <lee.jones@linaro.org>2017-04-27 09:25:06 +0100
commitaaa572b945876619ebd114d5a456d1250f267b9a (patch)
tree8a650f99a0dad0f718e131e471f7d4ad70dcf4ef /drivers/memory/atmel-ebi.c
parent9453fa4694156108d37bb2d03658286ce85ca4f0 (diff)
memory: atmel-ebi: Add missing ->numcs assignment
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>
Diffstat (limited to 'drivers/memory/atmel-ebi.c')
-rw-r--r--drivers/memory/atmel-ebi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/memory/atmel-ebi.c b/drivers/memory/atmel-ebi.c
index 8beba9a60d1c..7d24a957e98c 100644
--- a/drivers/memory/atmel-ebi.c
+++ b/drivers/memory/atmel-ebi.c
@@ -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)