dm: scsi: 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:
@@ -327,13 +327,6 @@ void scsi_init(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PARTITIONS
|
||||
struct blk_desc *scsi_get_dev(int dev)
|
||||
{
|
||||
return (dev < CONFIG_SYS_SCSI_MAX_DEVICE) ? &scsi_dev_desc[dev] : NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* copy src to dest, skipping leading and trailing blanks
|
||||
* and null terminate the string
|
||||
*/
|
||||
|
||||
@@ -34,7 +34,7 @@ int spl_sata_load_image(void)
|
||||
} else {
|
||||
/* try to recognize storage devices immediately */
|
||||
scsi_scan(0);
|
||||
stor_dev = scsi_get_dev(0);
|
||||
stor_dev = blk_get_devnum_by_type(IF_TYPE_SCSI, 0);
|
||||
if (!stor_dev)
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user