aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/core/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc/core/core.c')
-rw-r--r--drivers/mmc/core/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index 08a3cf2a7610..9290bb51a06a 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -120,8 +120,8 @@ static void mmc_should_fail_request(struct mmc_host *host,
120 !should_fail(&host->fail_mmc_request, data->blksz * data->blocks)) 120 !should_fail(&host->fail_mmc_request, data->blksz * data->blocks))
121 return; 121 return;
122 122
123 data->error = data_errors[random32() % ARRAY_SIZE(data_errors)]; 123 data->error = data_errors[prandom_u32() % ARRAY_SIZE(data_errors)];
124 data->bytes_xfered = (random32() % (data->bytes_xfered >> 9)) << 9; 124 data->bytes_xfered = (prandom_u32() % (data->bytes_xfered >> 9)) << 9;
125} 125}
126 126
127#else /* CONFIG_FAIL_MMC_REQUEST */ 127#else /* CONFIG_FAIL_MMC_REQUEST */