diff options
author | Simon Glass <sjg@chromium.org> | 2017-06-15 06:28:43 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-07-11 19:08:19 +0300 |
commit | f6ab5a92acc78371fc088075b64bd394d1f0d45f (patch) | |
tree | a3f3ebb2d9eddd7f7009adbc4cc01abf5c63c787 /drivers/ata/dwc_ahci.c | |
parent | 4e7490145800ea8da5f67a4fbaa66caab7689ce3 (diff) | |
download | u-boot-f6ab5a92acc78371fc088075b64bd394d1f0d45f.tar.xz |
dm: scsi: Add operations for SCSI devices
The SCSI uclass currently has no operations. It just uses the global SCSI
functions. Fix this by adding operations to the only two drivers that use
the uclass, and replacing the global functions with those defined locally
in the SCSI code.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/ata/dwc_ahci.c')
-rw-r--r-- | drivers/ata/dwc_ahci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ata/dwc_ahci.c b/drivers/ata/dwc_ahci.c index 401201717f..f6147989b1 100644 --- a/drivers/ata/dwc_ahci.c +++ b/drivers/ata/dwc_ahci.c @@ -98,6 +98,7 @@ U_BOOT_DRIVER(dwc_ahci) = { .id = UCLASS_SCSI, .of_match = dwc_ahci_ids, .ofdata_to_platdata = dwc_ahci_ofdata_to_platdata, + .ops = &scsi_ops, .probe = dwc_ahci_probe, .priv_auto_alloc_size = sizeof(struct dwc_ahci_priv), .flags = DM_FLAG_ALLOC_PRIV_DMA, |