Searched hist:"82348201384 d4481ab92beecfbca7c195120670e" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/mtd/nand/raw/ |
H A D | denali_dt.c | diff 82348201384d4481ab92beecfbca7c195120670e Fri Dec 20 05:31:51 CST 2019 Masahiro Yamada <yamada.masahiro@socionext.com> mtd: rawnand: denali_dt: error out if platform has no associated data
denali->ecc_caps is a mandatory parameter. If it were left unset, nand_ecc_choose_conf() would end up with NULL pointer access.
So, every compatible must be associated with proper denali_dt_data. If of_device_get_match_data() returns NULL, let it fail immediately.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
|