summaryrefslogtreecommitdiff
path: root/board/gdsys/p1022/sdhc_boot.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/gdsys/p1022/sdhc_boot.c')
-rw-r--r--board/gdsys/p1022/sdhc_boot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/gdsys/p1022/sdhc_boot.c b/board/gdsys/p1022/sdhc_boot.c
index fd0e910..6a4a6ef 100644
--- a/board/gdsys/p1022/sdhc_boot.c
+++ b/board/gdsys/p1022/sdhc_boot.c
@@ -43,7 +43,7 @@ int mmc_get_env_addr(struct mmc *mmc, int copy, u32 *env_addr)
return 1;
/* read out the first block, get the config data information */
- n = mmc->block_dev.block_read(mmc->block_dev.dev, 0, 1, tmp_buf);
+ n = mmc->block_dev.block_read(&mmc->block_dev, 0, 1, tmp_buf);
if (!n) {
free(tmp_buf);
return 1;