mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-03 12:35:02 +00:00
Fix build without options ATA_CAM
, broken by r241144.
This commit is contained in:
parent
47ed3abe8e
commit
6b67444bac
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=241160
@ -155,9 +155,13 @@ ata_sata_phy_reset(device_t dev, int port, int quick)
|
||||
int loop, retry, sata_rev;
|
||||
uint32_t val, val1;
|
||||
|
||||
#ifdef ATA_CAM
|
||||
sata_rev = ch->user[port < 0 ? 0 : port].revision;
|
||||
if (sata_rev > 0)
|
||||
quick = 0;
|
||||
#else
|
||||
sata_rev = 0;
|
||||
#endif
|
||||
|
||||
if (quick) {
|
||||
if (ata_sata_scr_read(ch, port, ATA_SCONTROL, &val))
|
||||
|
Loading…
Reference in New Issue
Block a user