Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jul 2011 17:32:22 +0000 (UTC)
From:      Marius Strobl <marius@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: r224348 - stable/8/sys/sparc64/sparc64
Message-ID:  <201107251732.p6PHWM5A067766@svn.freebsd.org>

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



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