aboutsummaryrefslogtreecommitdiff
path: root/cmd/bcb.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/bcb.c')
-rw-r--r--cmd/bcb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/bcb.c b/cmd/bcb.c
index 1bbd1fa..1622a90 100644
--- a/cmd/bcb.c
+++ b/cmd/bcb.c
@@ -122,7 +122,7 @@ static int __bcb_load(int devnum, const char *partp)
char *endp;
int part, ret;
- desc = blk_get_devnum_by_type(IF_TYPE_MMC, devnum);
+ desc = blk_get_devnum_by_uclass_id(UCLASS_MMC, devnum);
if (!desc) {
ret = -ENODEV;
goto err_read_fail;
@@ -287,7 +287,7 @@ static int __bcb_store(void)
u64 cnt;
int ret;
- desc = blk_get_devnum_by_type(IF_TYPE_MMC, bcb_dev);
+ desc = blk_get_devnum_by_uclass_id(UCLASS_MMC, bcb_dev);
if (!desc) {
ret = -ENODEV;
goto err;