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;
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to