]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mtd: Use MTD_BLOCK_MAJOR instead of the magic number
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Tue, 8 Oct 2013 23:59:08 +0000 (20:59 -0300)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 7 Nov 2013 07:32:47 +0000 (23:32 -0800)
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/mtdblock.c
drivers/mtd/mtdblock_ro.c

index 2aef5dda522be57cbd6652963d4078966f7bc64e..53884cc259169b765ad3116b7f94fde951e9820a 100644 (file)
@@ -373,7 +373,7 @@ static void mtdblock_remove_dev(struct mtd_blktrans_dev *dev)
 
 static struct mtd_blktrans_ops mtdblock_tr = {
        .name           = "mtdblock",
-       .major          = 31,
+       .major          = MTD_BLOCK_MAJOR,
        .part_bits      = 0,
        .blksize        = 512,
        .open           = mtdblock_open,
index 92759a9d2985e8a478b6a05734db195453d39434..70d27b4d632b06c2a7270ee3ab96ebf81ae5013a 100644 (file)
@@ -70,7 +70,7 @@ static void mtdblock_remove_dev(struct mtd_blktrans_dev *dev)
 
 static struct mtd_blktrans_ops mtdblock_tr = {
        .name           = "mtdblock",
-       .major          = 31,
+       .major          = MTD_BLOCK_MAJOR,
        .part_bits      = 0,
        .blksize        = 512,
        .readsect       = mtdblock_readsect,