diff options
author | Lothar Waßmann <LW@KARO-electronics.de> | 2017-08-29 12:17:13 +0200 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-08-29 18:23:50 +0200 |
commit | 2d2a2b8c080ad8feab7ca87769dedb3c7a83a375 (patch) | |
tree | bf1eee410798935e7318f878f12be25f4696a729 /arch/arm/mach-ixp4xx/ixdp425-setup.c | |
parent | mtd: nand: make Samsung SLC NAND usable again (diff) | |
download | linux-2d2a2b8c080ad8feab7ca87769dedb3c7a83a375.tar.xz linux-2d2a2b8c080ad8feab7ca87769dedb3c7a83a375.zip |
mtd: nand: complain loudly when chip->bits_per_cell is not correctly initialized
chip->bits_per_cell which is used to determine the NAND cell type
(SLC/MLC) should always have a value != 0.
Complain loudly if the value is 0 in nand_is_slc() to catch use before
correct initialization.
Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'arch/arm/mach-ixp4xx/ixdp425-setup.c')
0 files changed, 0 insertions, 0 deletions