mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +02:00
dm: usb: Drop the get_dev() function
This function is implemented by the legacy block functions now. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -136,23 +136,6 @@ static unsigned long usb_stor_write(struct blk_desc *block_dev, lbaint_t blknr,
|
||||
#endif
|
||||
void uhci_show_temp_int_td(void);
|
||||
|
||||
#ifdef CONFIG_PARTITIONS
|
||||
struct blk_desc *usb_stor_get_dev(int index)
|
||||
{
|
||||
#ifdef CONFIG_BLK
|
||||
struct udevice *dev;
|
||||
int ret;
|
||||
|
||||
ret = blk_get_device(IF_TYPE_USB, index, &dev);
|
||||
if (ret)
|
||||
return NULL;
|
||||
return dev_get_uclass_platdata(dev);
|
||||
#else
|
||||
return (index < usb_max_devs) ? &usb_dev_desc[index] : NULL;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
static void usb_show_progress(void)
|
||||
{
|
||||
debug(".");
|
||||
|
Reference in New Issue
Block a user