1
0
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:
Alexander Motin 2012-10-03 12:43:26 +00:00
parent 47ed3abe8e
commit 6b67444bac
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=241160

View File

@ -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))