Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Oct 2012 12:43:27 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r241160 - head/sys/dev/ata
Message-ID:  <201210031243.q93ChRQj029653@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Wed Oct  3 12:43:26 2012
New Revision: 241160
URL: http://svn.freebsd.org/changeset/base/241160

Log:
  Fix build without `options ATA_CAM`, broken by r241144.

Modified:
  head/sys/dev/ata/ata-sata.c

Modified: head/sys/dev/ata/ata-sata.c
==============================================================================
--- head/sys/dev/ata/ata-sata.c	Wed Oct  3 11:56:18 2012	(r241159)
+++ head/sys/dev/ata/ata-sata.c	Wed Oct  3 12:43:26 2012	(r241160)
@@ -155,9 +155,13 @@ ata_sata_phy_reset(device_t dev, int por
     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))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210031243.q93ChRQj029653>