svn commit: r203887 - stable/8/sys/dev/ata

Alexander Motin mav at FreeBSD.org
Sun Feb 14 19:23:05 UTC 2010


Author: mav
Date: Sun Feb 14 19:23:05 2010
New Revision: 203887
URL: http://svn.freebsd.org/changeset/base/203887

Log:
  MFC r202699:
  Make ata_getrev() an optional method by implementing ata_null_getrev().
  This fixes a bogus '???' boot message on Cambria boards with a CompactFlash
  card.

Modified:
  stable/8/sys/dev/ata/ata_if.m
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)
  stable/8/sys/netinet/   (props changed)

Modified: stable/8/sys/dev/ata/ata_if.m
==============================================================================
--- stable/8/sys/dev/ata/ata_if.m	Sun Feb 14 18:09:18 2010	(r203886)
+++ stable/8/sys/dev/ata/ata_if.m	Sun Feb 14 19:23:05 2010	(r203887)
@@ -71,10 +71,17 @@ METHOD int setmode {
     int		mode;
 }  DEFAULT ata_null_setmode;
 
+CODE {
+	static int ata_null_getrev(device_t dev, int target)
+	{
+		return (0);
+	}
+};
+
 METHOD int getrev {
     device_t    dev;
     int		target;
-};
+} DEFAULT ata_null_getrev;
 
 METHOD void reset {
     device_t    channel;


More information about the svn-src-stable mailing list