Skip to content

Commit 2aabeb2

Browse files
ezequielgarciacomputersforpeace
authored andcommitted
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>
1 parent 5576bc7 commit 2aabeb2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/mtd/mtdblock.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ static void mtdblock_remove_dev(struct mtd_blktrans_dev *dev)
373373

374374
static struct mtd_blktrans_ops mtdblock_tr = {
375375
.name = "mtdblock",
376-
.major = 31,
376+
.major = MTD_BLOCK_MAJOR,
377377
.part_bits = 0,
378378
.blksize = 512,
379379
.open = mtdblock_open,

‎drivers/mtd/mtdblock_ro.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ static void mtdblock_remove_dev(struct mtd_blktrans_dev *dev)
7070

7171
static struct mtd_blktrans_ops mtdblock_tr = {
7272
.name = "mtdblock",
73-
.major = 31,
73+
.major = MTD_BLOCK_MAJOR,
7474
.part_bits = 0,
7575
.blksize = 512,
7676
.readsect = mtdblock_readsect,

0 commit comments

Comments
 (0)