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

Commit 427456e4 authored by Boris Brezillon's avatar Boris Brezillon Committed by Alexandre Belloni
Browse files

memory: atmel-ebi: Fix the test to enable generic SMC logic



We should test the apply value and not the ret one here.

Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
Fixes: 6a4ec4cd ("memory: add Atmel EBI (External Bus Interface) driver")
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
parent ee194289
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -503,7 +503,7 @@ static int at91_ebi_dev_setup(struct at91_ebi *ebi, struct device_node *np,
		 * Attach the EBI device to the generic SMC logic if at least
		 * one "atmel,smc-" property is present.
		 */
		if (ebi->ebi_csa && ret)
		if (ebi->ebi_csa && apply)
			regmap_field_update_bits(ebi->ebi_csa,
						 BIT(cs), 0);
	}