2024-06-14 16:35:10 +00:00
|
|
|
From 7903b50441000365a6fe5badb39735889f562252 Mon Sep 17 00:00:00 2001
|
2024-01-03 11:57:28 +00:00
|
|
|
From: Daniel Golle <daniel@makrotopia.org>
|
2024-06-14 16:35:10 +00:00
|
|
|
Date: Thu, 30 May 2024 03:15:46 +0100
|
|
|
|
Subject: [PATCH 9/9] mmc: block: set GENHD_FL_NVMEM
|
2024-01-03 11:57:28 +00:00
|
|
|
|
|
|
|
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(+)
|
|
|
|
|
|
|
|
--- a/drivers/mmc/core/block.c
|
|
|
|
+++ b/drivers/mmc/core/block.c
|
2024-10-11 12:05:40 +00:00
|
|
|
@@ -2566,6 +2566,7 @@ static struct mmc_blk_data *mmc_blk_allo
|
2024-01-03 11:57:28 +00:00
|
|
|
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;
|