aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/mmc/mmc-uclass.c2
-rw-r--r--include/mmc.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/mmc-uclass.c b/drivers/mmc/mmc-uclass.c
index cb26d841bed..f313bc1734e 100644
--- a/drivers/mmc/mmc-uclass.c
+++ b/drivers/mmc/mmc-uclass.c
@@ -239,7 +239,7 @@ int mmc_of_parse(struct udevice *dev, struct mmc_config *cfg)
return 0;
}
-struct mmc *mmc_get_mmc_dev(struct udevice *dev)
+struct mmc *mmc_get_mmc_dev(const struct udevice *dev)
{
struct mmc_uclass_priv *upriv;
diff --git a/include/mmc.h b/include/mmc.h
index 5e9d15cb41a..6a2e9739e00 100644
--- a/include/mmc.h
+++ b/include/mmc.h
@@ -377,7 +377,7 @@ struct mmc_uclass_priv {
* @dev: Device
* @return associated mmc struct pointer if available, else NULL
*/
-struct mmc *mmc_get_mmc_dev(struct udevice *dev);
+struct mmc *mmc_get_mmc_dev(const struct udevice *dev);
/* End of driver model support */