Message ID | 8c10008a7be4664920db332d4baef5755d92531e.1711048433.git.daniel@makrotopia.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | block: implement NVMEM provider | expand |
diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c index 5b7dfd4a21fa5..157e6d0aed495 100644 --- a/drivers/mmc/core/block.c +++ b/drivers/mmc/core/block.c @@ -2516,6 +2516,7 @@ static struct mmc_blk_data *mmc_blk_alloc_req(struct mmc_card *card, md->disk->major = MMC_BLOCK_MAJOR; md->disk->minors = perdev_minors; md->disk->first_minor = devidx * perdev_minors; + md->disk->flags = GENHD_FL_NVMEM; md->disk->fops = &mmc_bdops; md->disk->private_data = md; md->parent = parent;
Set flag to consider MMC block devices as NVMEM providers. Signed-off-by: Daniel Golle <daniel@makrotopia.org> --- drivers/mmc/core/block.c | 1 + 1 file changed, 1 insertion(+)