]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit4de12067bd4da0db6f2ac4fcf60083975e58cc77
tree2b2365ec06e9cd0916c034a9f7b85c91badf6f5c
parent07cc4b5641d69dd2b5ca319b4dea91b1622103b4
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