aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtdchar.c
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2011-08-30 21:45:46 -0400
committerArtem Bityutskiy <artem.bityutskiy@intel.com>2011-09-11 08:57:44 -0400
commit19fb4341ad7a72e4c996234a1834e52e1f7954ba (patch)
tree4eff2d048c465dbe347d24af91016ea0680dc1e0 /drivers/mtd/mtdchar.c
parent4a89ff885ff9f64ea62669100766e10e4e257c6e (diff)
mtd: kill old field for `struct mtd_info_user'
The ecctype and eccsize fields have been obsolete for a while. Since they don't have any users, we can kill them and leave padding in their place for now. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
Diffstat (limited to 'drivers/mtd/mtdchar.c')
-rw-r--r--drivers/mtd/mtdchar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/mtdchar.c b/drivers/mtd/mtdchar.c
index 1547e2a68279..8feb5fdcd97b 100644
--- a/drivers/mtd/mtdchar.c
+++ b/drivers/mtd/mtdchar.c
@@ -672,8 +672,8 @@ static int mtd_ioctl(struct file *file, u_int cmd, u_long arg)
672 info.erasesize = mtd->erasesize; 672 info.erasesize = mtd->erasesize;
673 info.writesize = mtd->writesize; 673 info.writesize = mtd->writesize;
674 info.oobsize = mtd->oobsize; 674 info.oobsize = mtd->oobsize;
675 /* The below fields are obsolete */ 675 /* The below field is obsolete */
676 info.ecctype = -1; 676 info.padding = 0;
677 if (copy_to_user(argp, &info, sizeof(struct mtd_info_user))) 677 if (copy_to_user(argp, &info, sizeof(struct mtd_info_user)))
678 return -EFAULT; 678 return -EFAULT;
679 break; 679 break;