svn commit: r224348 - stable/8/sys/sparc64/sparc64

Marius Strobl marius at FreeBSD.org
Mon Jul 25 17:32:22 UTC 2011


Author: marius
Date: Mon Jul 25 17:32:22 2011
New Revision: 224348
URL: http://svn.freebsd.org/changeset/base/224348

Log:
  MFC: r221958
  
  Recognize the eeprom device found in Fujitsu PRIMEPOWER650 and 900.

Modified:
  stable/8/sys/sparc64/sparc64/eeprom.c
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/geom/label/   (props changed)

Modified: stable/8/sys/sparc64/sparc64/eeprom.c
==============================================================================
--- stable/8/sys/sparc64/sparc64/eeprom.c	Mon Jul 25 17:31:09 2011	(r224347)
+++ stable/8/sys/sparc64/sparc64/eeprom.c	Mon Jul 25 17:32:22 2011	(r224348)
@@ -107,8 +107,11 @@ DRIVER_MODULE(eeprom, sbus, eeprom_drive
 static int
 eeprom_probe(device_t dev)
 {
+	const char *name;
 
-	if (strcmp("eeprom", ofw_bus_get_name(dev)) == 0) {
+	name = ofw_bus_get_name(dev);
+	if (strcmp(name, "eeprom") == 0 ||
+	    strcmp(name, "FJSV,eeprom") == 0) {
 		device_set_desc(dev, "EEPROM/clock");
 		return (0);
 	}


More information about the svn-src-stable mailing list