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>
This commit is contained in:
parent
9453fa4694
commit
aaa572b945
|
@ -332,6 +332,7 @@ static int atmel_ebi_dev_setup(struct atmel_ebi *ebi, struct device_node *np,
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
ebid->ebi = ebi;
|
ebid->ebi = ebi;
|
||||||
|
ebid->numcs = numcs;
|
||||||
|
|
||||||
ret = caps->xlate_config(ebid, np, &conf);
|
ret = caps->xlate_config(ebid, np, &conf);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
|
Loading…
Reference in New Issue