]> Git Repo - u-boot.git/blobdiff - drivers/mmc/mmc-uclass.c
blk: Switch over to using uclass IDs
[u-boot.git] / drivers / mmc / mmc-uclass.c
index 688bdc06d4267fff8641e218396006a66b1987e9..b1bd4ae1bc86e8a5c7ce7ae37c7bbf3d4c872187 100644 (file)
@@ -290,7 +290,7 @@ struct mmc *find_mmc_device(int dev_num)
        struct udevice *dev, *mmc_dev;
        int ret;
 
-       ret = blk_find_device(IF_TYPE_MMC, dev_num, &dev);
+       ret = blk_find_device(UCLASS_MMC, dev_num, &dev);
 
        if (ret) {
 #if !defined(CONFIG_SPL_BUILD) || defined(CONFIG_SPL_LIBCOMMON_SUPPORT)
@@ -308,12 +308,12 @@ struct mmc *find_mmc_device(int dev_num)
 
 int get_mmc_num(void)
 {
-       return max((blk_find_max_devnum(IF_TYPE_MMC) + 1), 0);
+       return max((blk_find_max_devnum(UCLASS_MMC) + 1), 0);
 }
 
 int mmc_get_next_devnum(void)
 {
-       return blk_find_max_devnum(IF_TYPE_MMC);
+       return blk_find_max_devnum(UCLASS_MMC);
 }
 
 int mmc_get_blk(struct udevice *dev, struct udevice **blkp)
@@ -411,8 +411,8 @@ int mmc_bind(struct udevice *dev, struct mmc *mmc, const struct mmc_config *cfg)
        /* Use the fixed index with aliases node's index */
        debug("%s: alias devnum=%d\n", __func__, dev_seq(dev));
 
-       ret = blk_create_devicef(dev, "mmc_blk", "blk", IF_TYPE_MMC,
-                       dev_seq(dev), 512, 0, &bdev);
+       ret = blk_create_devicef(dev, "mmc_blk", "blk", UCLASS_MMC,
+                                dev_seq(dev), 512, 0, &bdev);
        if (ret) {
                debug("Cannot create block device\n");
                return ret;
This page took 0.023847 seconds and 4 git commands to generate.