Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+3
+3
drivers/mtd/nand/spi/core.c
··· 1430 1430 1431 1431 op = spinand_select_op_variant(spinand, 1432 1432 info->op_variants.update_cache); 1433 + if (!op) 1434 + return -ENOTSUPP; 1435 + 1433 1436 spinand->op_templates.update_cache = op; 1434 1437 1435 1438 return 0;