From patchwork Sat Mar 17 18:16:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: mtd: sm_ftl: fix typo in major number. Date: Sat, 17 Mar 2012 08:16:53 -0000 From: Maxim Levitsky X-Patchwork-Id: 147341 Message-Id: <1332008213-3940-1-git-send-email-maximlevitsky@gmail.com> To: linux-mtd@lists.infradead.org Cc: Maxim Levitsky , John Mesmon , Alasdair G Kergon , LVM general discussion and development major == 0 allocates dynamic major, not major == -1 Signed-off-by: Maxim Levitsky --- 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 072ed59..9e2dfd5 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) 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,