diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index d96db7a0f83..c5c169d9d19 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -25,6 +25,7 @@ #include #include #include +#include #include "mmc_private.h" #define DEFAULT_CMD6_TIMEOUT_MS 500 @@ -2902,7 +2903,7 @@ retry: if (err) { #if !defined(CONFIG_SPL_BUILD) || defined(CONFIG_SPL_LIBCOMMON_SUPPORT) if (!quiet) - pr_err("Card did not respond to voltage select! : %d\n", err); + dev_err(mmc_to_dev(mmc), "Card did not respond to voltage select! : %d\n", err); #endif return -EOPNOTSUPP; }