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>
This commit is contained in:
Родитель
5576bc7bef
Коммит
2aabeb20ee
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче