diff options
author | Maxim Levitsky <maximlevitsky@gmail.com> | 2012-03-17 14:16:53 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-03-26 20:01:26 -0400 |
commit | 452380efbd72d8d41f53ea64c8a6ea1fedc4394d (patch) | |
tree | 8e168ce71d09a2de1719f98e86195a44f63cfae2 | |
parent | 6551ab5d30d6bf0cea0c6cb294686ce3c7fc6042 (diff) |
mtd: sm_ftl: fix typo in major number.
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>
-rw-r--r-- | drivers/mtd/sm_ftl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/sm_ftl.c b/drivers/mtd/sm_ftl.c index 072ed5970e2f..9e2dfd517aa5 100644 --- a/drivers/mtd/sm_ftl.c +++ b/drivers/mtd/sm_ftl.c | |||
@@ -1256,7 +1256,7 @@ static void sm_remove_dev(struct mtd_blktrans_dev *dev) | |||
1256 | 1256 | ||
1257 | static struct mtd_blktrans_ops sm_ftl_ops = { | 1257 | static struct mtd_blktrans_ops sm_ftl_ops = { |
1258 | .name = "smblk", | 1258 | .name = "smblk", |
1259 | .major = -1, | 1259 | .major = 0, |
1260 | .part_bits = SM_FTL_PARTN_BITS, | 1260 | .part_bits = SM_FTL_PARTN_BITS, |
1261 | .blksize = SM_SECTOR_SIZE, | 1261 | .blksize = SM_SECTOR_SIZE, |
1262 | .getgeo = sm_getgeo, | 1262 | .getgeo = sm_getgeo, |