svn commit: r202699 - head/sys/dev/ata

Rui Paulo rpaulo at FreeBSD.org
Wed Jan 20 14:29:55 UTC 2010


Author: rpaulo
Date: Wed Jan 20 14:29:55 2010
New Revision: 202699
URL: http://svn.freebsd.org/changeset/base/202699

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

Modified:
  head/sys/dev/ata/ata_if.m

Modified: head/sys/dev/ata/ata_if.m
==============================================================================
--- head/sys/dev/ata/ata_if.m	Wed Jan 20 14:21:28 2010	(r202698)
+++ head/sys/dev/ata/ata_if.m	Wed Jan 20 14:29:55 2010	(r202699)
@@ -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-head mailing list