提交 452380ef 编写于 作者: M Maxim Levitsky 提交者: David Woodhouse

mtd: sm_ftl: fix typo in major number.

major == 0 allocates dynamic major, not major == -1
Signed-off-by: NMaxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
上级 6551ab5d
...@@ -1256,7 +1256,7 @@ static void sm_remove_dev(struct mtd_blktrans_dev *dev) ...@@ -1256,7 +1256,7 @@ static void sm_remove_dev(struct mtd_blktrans_dev *dev)
static struct mtd_blktrans_ops sm_ftl_ops = { static struct mtd_blktrans_ops sm_ftl_ops = {
.name = "smblk", .name = "smblk",
.major = -1, .major = 0,
.part_bits = SM_FTL_PARTN_BITS, .part_bits = SM_FTL_PARTN_BITS,
.blksize = SM_SECTOR_SIZE, .blksize = SM_SECTOR_SIZE,
.getgeo = sm_getgeo, .getgeo = sm_getgeo,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册