Loading drivers/mtd/mtdchar.c +0 −2 Original line number Diff line number Diff line Loading @@ -949,8 +949,6 @@ static int mtdchar_ioctl(struct file *file, u_int cmd, u_long arg) return -EINVAL; if (copy_from_user(&oinfo, argp, sizeof(oinfo))) return -EFAULT; if (!mtd->lock_user_prot_reg) return -EOPNOTSUPP; ret = mtd_lock_user_prot_reg(mtd, oinfo.start, oinfo.length); break; } Loading include/linux/mtd/mtd.h +2 −0 Original line number Diff line number Diff line Loading @@ -389,6 +389,8 @@ static inline int mtd_write_user_prot_reg(struct mtd_info *mtd, loff_t to, static inline int mtd_lock_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len) { if (!mtd->lock_user_prot_reg) return -EOPNOTSUPP; return mtd->lock_user_prot_reg(mtd, from, len); } Loading Loading
drivers/mtd/mtdchar.c +0 −2 Original line number Diff line number Diff line Loading @@ -949,8 +949,6 @@ static int mtdchar_ioctl(struct file *file, u_int cmd, u_long arg) return -EINVAL; if (copy_from_user(&oinfo, argp, sizeof(oinfo))) return -EFAULT; if (!mtd->lock_user_prot_reg) return -EOPNOTSUPP; ret = mtd_lock_user_prot_reg(mtd, oinfo.start, oinfo.length); break; } Loading
include/linux/mtd/mtd.h +2 −0 Original line number Diff line number Diff line Loading @@ -389,6 +389,8 @@ static inline int mtd_write_user_prot_reg(struct mtd_info *mtd, loff_t to, static inline int mtd_lock_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len) { if (!mtd->lock_user_prot_reg) return -EOPNOTSUPP; return mtd->lock_user_prot_reg(mtd, from, len); } Loading