Skip to content

Commit

Permalink
mtd: sm_ftl: fix typo in major number.
Browse files Browse the repository at this point in the history
major == 0 allocates dynamic major, not major == -1

Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Maxim Levitsky authored and David Woodhouse committed Mar 27, 2012
1 parent 6551ab5 commit 452380e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/sm_ftl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,7 @@ static void sm_remove_dev(struct mtd_blktrans_dev *dev)

static struct mtd_blktrans_ops sm_ftl_ops = {
.name = "smblk",
.major = -1,
.major = 0,
.part_bits = SM_FTL_PARTN_BITS,
.blksize = SM_SECTOR_SIZE,
.getgeo = sm_getgeo,
Expand Down

0 comments on commit 452380e

Please sign in to comment.