mtd: Use MTD_BLOCK_MAJOR instead of the magic number
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Wed Nov 13 13:59:04 EST 2013
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=2aabeb20ee4b2f4dce5d4b3855cea42d42c33772
Commit: 2aabeb20ee4b2f4dce5d4b3855cea42d42c33772
Parent: 5576bc7bef2919dd2b185bffb768bf9c0da76788
Author: Ezequiel Garcia <ezequiel.garcia at free-electrons.com>
AuthorDate: Tue Oct 8 20:59:08 2013 -0300
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Wed Nov 6 23:32:47 2013 -0800
mtd: Use MTD_BLOCK_MAJOR instead of the magic number
Signed-off-by: Ezequiel Garcia <ezequiel.garcia at free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
drivers/mtd/mtdblock.c | 2 +-
drivers/mtd/mtdblock_ro.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/mtdblock.c b/drivers/mtd/mtdblock.c
index 2aef5dd..53884cc 100644
--- a/drivers/mtd/mtdblock.c
+++ b/drivers/mtd/mtdblock.c
@@ -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,
diff --git a/drivers/mtd/mtdblock_ro.c b/drivers/mtd/mtdblock_ro.c
index 92759a9..70d27b4 100644
--- a/drivers/mtd/mtdblock_ro.c
+++ b/drivers/mtd/mtdblock_ro.c
@@ -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,
More information about the linux-mtd-cvs
mailing list