]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Blackfin: convert bfin_sdh to legacy mmc
authorMike Frysinger <vapier@gentoo.org>
Mon, 23 Mar 2009 03:43:31 +0000 (23:43 -0400)
committerMike Frysinger <vapier@gentoo.org>
Thu, 2 Apr 2009 10:42:05 +0000 (06:42 -0400)
The Blackfin SDH controller is still using the legacy framework, so update
the driver to use the renamed functions.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
drivers/mmc/bfin_sdh.c

index 7d6b495f3bb920eb427577efeb586b196beadb71..16c9695ba856ed50eae4994ee43c7d67eabadc7c 100644 (file)
@@ -293,7 +293,7 @@ mmc_bwrite(int dev, unsigned long start, lbaint_t blkcnt, const void *buffer)
                        printf("MMC_CMD_SET_BLOCKLEN failed\n");
                        goto out;
                }
-               ret = mmc_cmd(MMC_CMD_WRITE_BLOCK,
+               ret = mmc_cmd(MMC_CMD_WRITE_SINGLE_BLOCK,
                              start * mmc_blkdev.blksz, resp,
                              MMC_RSP_R1);
                if (ret) {
@@ -462,7 +462,7 @@ static int mmc_init_card(struct mmc_cid *cid, int verbose)
        return ret;
 }
 
-int mmc_init(int verbose)
+int mmc_legacy_init(int verbose)
 {
        __u16 pwr_ctl = 0;
        int ret;
@@ -530,16 +530,6 @@ int mmc_init(int verbose)
        return 0;
 }
 
-int mmc_read(ulong src, uchar *dst, int size)
-{
-       return -ENOSYS;
-}
-
-int mmc_write(uchar *src, ulong dst, int size)
-{
-       return -ENOSYS;
-}
-
 int mmc2info(ulong addr)
 {
        return 0;