Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jan 2010 14:29:55 +0000 (UTC)
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r202699 - head/sys/dev/ata
Message-ID:  <201001201429.o0KETtBD028633@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



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