Просмотр исходного кода

[MTD] NAND ECC hwctl function has no return value

Fix the broken prototype

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Thomas Gleixner 19 лет назад
Родитель
Сommit
9a57d470fd
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      include/linux/mtd/nand.h

+ 1 - 1
include/linux/mtd/nand.h

@@ -237,7 +237,7 @@ struct nand_ecc_ctrl {
 	int			steps;
 	int			size;
 	int			bytes;
-	int			(*hwctl)(struct mtd_info *mtd, int mode);
+	void			(*hwctl)(struct mtd_info *mtd, int mode);
 	int			(*calculate)(struct mtd_info *mtd,
 					     const uint8_t *dat,
 					     uint8_t *ecc_code);