diff options
author | Simon Glass <sjg@chromium.org> | 2022-09-17 09:00:09 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2022-09-25 08:30:05 -0600 |
commit | 8149b1500d805b56f2e3e42fb31c5554a2011745 (patch) | |
tree | 14738627c5576d3352d58df242fade4aec34c5f4 /common/spl | |
parent | a2a9317cbc396c19baea217e091960c56c13f2c7 (diff) | |
download | u-boot-8149b1500d805b56f2e3e42fb31c5554a2011745.zip u-boot-8149b1500d805b56f2e3e42fb31c5554a2011745.tar.gz u-boot-8149b1500d805b56f2e3e42fb31c5554a2011745.tar.bz2 |
blk: Rename if_type to uclass_id
Use the word 'uclass' instead of 'if_type' to complete the conversion.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/spl')
-rw-r--r-- | common/spl/spl_sata.c | 2 | ||||
-rw-r--r-- | common/spl/spl_usb.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/common/spl/spl_sata.c b/common/spl/spl_sata.c index ea9f175..6c36f2c 100644 --- a/common/spl/spl_sata.c +++ b/common/spl/spl_sata.c @@ -71,7 +71,7 @@ static int spl_sata_load_image(struct spl_image_info *spl_image, /* try to recognize storage devices immediately */ scsi_scan(false); - stor_dev = blk_get_devnum_by_type(UCLASS_SCSI, 0); + stor_dev = blk_get_devnum_by_uclass_id(UCLASS_SCSI, 0); if (!stor_dev) return -ENODEV; diff --git a/common/spl/spl_usb.c b/common/spl/spl_usb.c index 63c00f8..479e2dc 100644 --- a/common/spl/spl_usb.c +++ b/common/spl/spl_usb.c @@ -41,7 +41,7 @@ int spl_usb_load(struct spl_image_info *spl_image, /* try to recognize storage devices immediately */ usb_stor_curr_dev = usb_stor_scan(1); - stor_dev = blk_get_devnum_by_type(UCLASS_USB, usb_stor_curr_dev); + stor_dev = blk_get_devnum_by_uclass_id(UCLASS_USB, usb_stor_curr_dev); if (!stor_dev) return -ENODEV; |