Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Feb 2010 19:23:05 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r203887 - stable/8/sys/dev/ata
Message-ID:  <201002141923.o1EJN5f8061926@svn.freebsd.org>

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



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