mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 04:46:01 +01:00
dm: scsi: Drop scsi_init() when driver model is used
This function should not be used with driver model. Update the code to reflect this. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
681357ffd9
commit
7337fcd8c0
@ -29,7 +29,8 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_PCI) && !defined(CONFIG_SCSI_AHCI_PLAT)
|
#if defined(CONFIG_PCI) && !defined(CONFIG_SCSI_AHCI_PLAT) && \
|
||||||
|
!defined(CONFIG_DM_SCSI)
|
||||||
const struct pci_device_id scsi_device_list[] = { SCSI_DEV_LIST };
|
const struct pci_device_id scsi_device_list[] = { SCSI_DEV_LIST };
|
||||||
#endif
|
#endif
|
||||||
static struct scsi_cmd tempccb; /* temporary scsi command buffer */
|
static struct scsi_cmd tempccb; /* temporary scsi command buffer */
|
||||||
@ -274,7 +275,8 @@ static ulong scsi_write(struct blk_desc *block_dev, lbaint_t blknr,
|
|||||||
return blkcnt;
|
return blkcnt;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(CONFIG_PCI) && !defined(CONFIG_SCSI_AHCI_PLAT)
|
#if defined(CONFIG_PCI) && !defined(CONFIG_SCSI_AHCI_PLAT) && \
|
||||||
|
!defined(CONFIG_DM_SCSI)
|
||||||
void scsi_init(void)
|
void scsi_init(void)
|
||||||
{
|
{
|
||||||
int busdevfunc = -1;
|
int busdevfunc = -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user