mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix build without options ATA_CAM, broken by r241144.
This commit is contained in:
parent
47ed3abe8e
commit
6b67444bac
1 changed files with 4 additions and 0 deletions
|
|
@ -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 a new issue