summaryrefslogtreecommitdiffstats
path: root/board/cm5200/fwupdate.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/cm5200/fwupdate.c')
-rw-r--r--board/cm5200/fwupdate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/cm5200/fwupdate.c b/board/cm5200/fwupdate.c
index 2ed90de9d5..4740c8394c 100644
--- a/board/cm5200/fwupdate.c
+++ b/board/cm5200/fwupdate.c
@@ -105,7 +105,7 @@ static int load_rescue_image(ulong addr)
/* Detect storage device */
for (devno = 0; devno < USB_MAX_STOR_DEV; devno++) {
- stor_dev = usb_stor_get_dev(devno);
+ stor_dev = blk_get_devnum_by_type(IF_TYPE_USB, devno);
if (stor_dev->type != DEV_TYPE_UNKNOWN)
break;
}
OpenPOWER on IntegriCloud