[PATCH 2/3] mci: mci-core: set the DEVFS_IS_MCI_DEV flag
Marco Felsch
m.felsch at pengutronix.de
Thu May 6 04:22:18 PDT 2021
Set the new introduced flag to be able to check if the cdev is an
mmc/mci device.
Signed-off-by: Marco Felsch <m.felsch at pengutronix.de>
---
drivers/mci/mci-core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c
index 017f25d35f..c0fbcb385f 100644
--- a/drivers/mci/mci-core.c
+++ b/drivers/mci/mci-core.c
@@ -420,6 +420,7 @@ static void mci_part_add(struct mci *mci, uint64_t size,
part->size = size;
part->blk.cdev.name = name;
part->blk.cdev.partname = partname;
+ part->blk.cdev.flags |= DEVFS_IS_MCI_DEV;
part->blk.blockbits = SECTOR_SHIFT;
part->blk.num_blocks = mci_calc_blk_cnt(size, part->blk.blockbits);
part->area_type = area_type;
--
2.29.2
More information about the barebox
mailing list