spl: sata: fix build with DM_SCSI
authorBaruch Siach <baruch@tkos.co.il>
Thu, 16 May 2019 10:03:54 +0000 (13:03 +0300)
committerStefan Roese <sr@denx.de>
Thu, 11 Jul 2019 05:01:18 +0000 (07:01 +0200)
commitab2d415e9bbab64431e6475fbb5a5c62303f8163
tree2b2365ec06e9cd0916c034a9f7b85c91badf6f5c
parenta4c61ffde3ae4f1b7228d2ecd40fbb8f3703d76c
spl: sata: fix build with DM_SCSI

The init_sata() routine is only present when DM_SCSI is not enabled.
Don't call init_sata() when DM_SCSI is enabled. The code will fall back
to scsi_scan() in this case.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Stefan Roese <sr@denx.de>
common/spl/spl_sata.c