mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 07:33:19 +02:00
mtd: spinand: Add missing check
The update cache variant is mandatory, both read and write versions are being checked, but not this one. All chip drivers seem to implement this variant, so there should be no breakage. Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:
parent
a57b1f07d2
commit
aab8a4c656
|
|
@ -1430,6 +1430,9 @@ int spinand_match_and_init(struct spinand_device *spinand,
|
|||
|
||||
op = spinand_select_op_variant(spinand,
|
||||
info->op_variants.update_cache);
|
||||
if (!op)
|
||||
return -ENOTSUPP;
|
||||
|
||||
spinand->op_templates.update_cache = op;
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user