mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-09-22 12:44:11 +08:00
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: Boris Brezillon <boris.brezillon@free-electrons.com>
Fixes: 6a4ec4cd08
("memory: add Atmel EBI (External Bus Interface) driver")
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
This commit is contained in:
parent
ee19428950
commit
427456e477
@ -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
|
* Attach the EBI device to the generic SMC logic if at least
|
||||||
* one "atmel,smc-" property is present.
|
* one "atmel,smc-" property is present.
|
||||||
*/
|
*/
|
||||||
if (ebi->ebi_csa && ret)
|
if (ebi->ebi_csa && apply)
|
||||||
regmap_field_update_bits(ebi->ebi_csa,
|
regmap_field_update_bits(ebi->ebi_csa,
|
||||||
BIT(cs), 0);
|
BIT(cs), 0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user