Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aaa572b9 authored by Boris Brezillon's avatar Boris Brezillon Committed by Lee Jones
Browse files

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: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: default avatarNicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 9453fa46
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -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)