]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/staging/mt29f_spinand/mt29f_spinand.c
mtd: nand: Make sure drivers not supporting SET/GET_FEATURES return -ENOTSUPP
[karo-tx-linux.git] / drivers / staging / mt29f_spinand / mt29f_spinand.c
index e389009fca42c0caa447dc8f9b37360e3565a456..a4e3ae8f0c85fb441cb528425347b9bae6562d20 100644 (file)
@@ -915,6 +915,8 @@ static int spinand_probe(struct spi_device *spi_nand)
        chip->waitfunc  = spinand_wait;
        chip->options   |= NAND_CACHEPRG;
        chip->select_chip = spinand_select_chip;
+       chip->onfi_set_features = nand_onfi_get_set_features_notsupp;
+       chip->onfi_get_features = nand_onfi_get_set_features_notsupp;
 
        mtd = nand_to_mtd(chip);