diff options
author | Simon Glass <sjg@chromium.org> | 2021-08-01 18:54:32 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-08-05 19:46:35 -0400 |
commit | eb4b7fa0ae50187e63e2f712409ebb63e1b77119 (patch) | |
tree | c37963a3e6205a7bdeb28c495d0c558571247e63 /drivers | |
parent | 2d88b26583ec0b4e98c999ae8c0c5c5f66ece1d3 (diff) | |
download | u-boot-eb4b7fa0ae50187e63e2f712409ebb63e1b77119.tar.gz u-boot-eb4b7fa0ae50187e63e2f712409ebb63e1b77119.tar.bz2 u-boot-eb4b7fa0ae50187e63e2f712409ebb63e1b77119.zip |
pci: scsi: pci: Drop DM_PCI check from scsi
We don't need this check anymore since when PCI is enabled, driver model
is always used.
Drop it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/scsi.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c index ce69750c7f..d93d241928 100644 --- a/drivers/scsi/scsi.c +++ b/drivers/scsi/scsi.c @@ -284,7 +284,6 @@ void scsi_init(void) */ for (i = 0; i < ARRAY_SIZE(scsi_device_list); i++) { /* get PCI Device ID */ -#ifdef CONFIG_DM_PCI struct udevice *dev; int ret; @@ -294,11 +293,6 @@ void scsi_init(void) busdevfunc = dm_pci_get_bdf(dev); break; } -#else - busdevfunc = pci_find_device(scsi_device_list[i].vendor, - scsi_device_list[i].device, - 0); -#endif if (busdevfunc != -1) break; } |