summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtdblock.c
diff options
context:
space:
mode:
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>2013-10-08 20:59:08 -0300
committerBrian Norris <computersforpeace@gmail.com>2013-11-06 23:32:47 -0800
commit2aabeb20ee4b2f4dce5d4b3855cea42d42c33772 (patch)
treee3ef27ac84f307b42b8c48f4a1f04a3a9bd571c3 /drivers/mtd/mtdblock.c
parent5576bc7bef2919dd2b185bffb768bf9c0da76788 (diff)
downloadop-kernel-dev-2aabeb20ee4b2f4dce5d4b3855cea42d42c33772.zip
op-kernel-dev-2aabeb20ee4b2f4dce5d4b3855cea42d42c33772.tar.gz
mtd: Use MTD_BLOCK_MAJOR instead of the magic number
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/mtdblock.c')
-rw-r--r--drivers/mtd/mtdblock.c2
1 files changed, 1 insertions, 1 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,
OpenPOWER on IntegriCloud