Loading drivers/mtd/mtdchar.c +0 −4 Original line number Diff line number Diff line Loading @@ -310,10 +310,6 @@ static ssize_t mtdchar_write(struct file *file, const char __user *buf, size_t c ret = -EROFS; break; case MTD_FILE_MODE_OTP_USER: if (!mtd->write_user_prot_reg) { ret = -EOPNOTSUPP; break; } ret = mtd_write_user_prot_reg(mtd, *ppos, len, &retlen, kbuf); break; Loading include/linux/mtd/mtd.h +2 −0 Original line number Diff line number Diff line Loading @@ -381,6 +381,8 @@ static inline int mtd_write_user_prot_reg(struct mtd_info *mtd, loff_t to, u_char *buf) { *retlen = 0; if (!mtd->write_user_prot_reg) return -EOPNOTSUPP; return mtd->write_user_prot_reg(mtd, to, len, retlen, buf); } Loading Loading
drivers/mtd/mtdchar.c +0 −4 Original line number Diff line number Diff line Loading @@ -310,10 +310,6 @@ static ssize_t mtdchar_write(struct file *file, const char __user *buf, size_t c ret = -EROFS; break; case MTD_FILE_MODE_OTP_USER: if (!mtd->write_user_prot_reg) { ret = -EOPNOTSUPP; break; } ret = mtd_write_user_prot_reg(mtd, *ppos, len, &retlen, kbuf); break; Loading
include/linux/mtd/mtd.h +2 −0 Original line number Diff line number Diff line Loading @@ -381,6 +381,8 @@ static inline int mtd_write_user_prot_reg(struct mtd_info *mtd, loff_t to, u_char *buf) { *retlen = 0; if (!mtd->write_user_prot_reg) return -EOPNOTSUPP; return mtd->write_user_prot_reg(mtd, to, len, retlen, buf); } Loading