Commit 2aabeb20 authored by Ezequiel Garcia's avatar Ezequiel Garcia Committed by Brian Norris

mtd: Use MTD_BLOCK_MAJOR instead of the magic number

Signed-off-by: default avatarEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 5576bc7b
...@@ -373,7 +373,7 @@ static void mtdblock_remove_dev(struct mtd_blktrans_dev *dev) ...@@ -373,7 +373,7 @@ static void mtdblock_remove_dev(struct mtd_blktrans_dev *dev)
static struct mtd_blktrans_ops mtdblock_tr = { static struct mtd_blktrans_ops mtdblock_tr = {
.name = "mtdblock", .name = "mtdblock",
.major = 31, .major = MTD_BLOCK_MAJOR,
.part_bits = 0, .part_bits = 0,
.blksize = 512, .blksize = 512,
.open = mtdblock_open, .open = mtdblock_open,
......
...@@ -70,7 +70,7 @@ static void mtdblock_remove_dev(struct mtd_blktrans_dev *dev) ...@@ -70,7 +70,7 @@ static void mtdblock_remove_dev(struct mtd_blktrans_dev *dev)
static struct mtd_blktrans_ops mtdblock_tr = { static struct mtd_blktrans_ops mtdblock_tr = {
.name = "mtdblock", .name = "mtdblock",
.major = 31, .major = MTD_BLOCK_MAJOR,
.part_bits = 0, .part_bits = 0,
.blksize = 512, .blksize = 512,
.readsect = mtdblock_readsect, .readsect = mtdblock_readsect,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment