17199949 SPARC: Need to remove Sbus probe from X server s12_30
authorhenryzh <henry.zhao@oracle.com>
Mon, 19 Aug 2013 17:27:17 -0700
changeset 1403 a43e5c45d800
parent 1402 85e35f340303
child 1404 56e407ea0816
17199949 SPARC: Need to remove Sbus probe from X server
open-src/xserver/xorg/patch-list
open-src/xserver/xorg/remove-sbus-probe.patch
--- a/open-src/xserver/xorg/patch-list	Fri Aug 16 14:04:38 2013 -0700
+++ b/open-src/xserver/xorg/patch-list	Mon Aug 19 17:27:17 2013 -0700
@@ -28,3 +28,4 @@
 16418361.patch,-p1
 sparc-config-improv.patch,-p1
 16794101.patch,-p1
+remove-sbus-probe.patch,-p1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/open-src/xserver/xorg/remove-sbus-probe.patch	Mon Aug 19 17:27:17 2013 -0700
@@ -0,0 +1,49 @@
+diff --git a/hw/xfree86/common/xf86AutoConfig.c b/hw/xfree86/common/xf86AutoConfig.c
+index e85a72f..cc8976f 100644
+--- a/hw/xfree86/common/xf86AutoConfig.c
++++ b/hw/xfree86/common/xf86AutoConfig.c
+@@ -2,6 +2,7 @@
+  * Copyright 2003 by David H. Dawes.
+  * Copyright 2003 by X-Oz Technologies.
+  * All rights reserved.
++ * Copyright (c) 2013 Oracle and/or its affiliates. All Rights Reserved.
+  *
+  * Permission is hereby granted, free of charge, to any person obtaining a
+  * copy of this software and associated documentation files (the "Software"),
+@@ -285,15 +286,6 @@ listPossibleVideoDrivers(char *matches[], int nmatches)
+                 xf86SolarisFbDev);
+     }
+ #endif
+-#ifdef __sparc__
+-    if (i < (nmatches - 1))
+-    {
+-        char *sbusDriver = sparcDriverName();
+-
+-        if (sbusDriver)
+-            matches[i++] = xnfstrdup(sbusDriver);
+-    }
+-#endif
+ #ifdef XSERVER_LIBPCIACCESS
+     if (i < (nmatches - 1))
+         i = xf86PciMatchDriver(matches, nmatches);
+diff --git a/hw/xfree86/common/xf86Bus.c b/hw/xfree86/common/xf86Bus.c
+index e101537..8af532d 100644
+--- a/hw/xfree86/common/xf86Bus.c
++++ b/hw/xfree86/common/xf86Bus.c
+@@ -1,5 +1,6 @@
+ /*
+  * Copyright (c) 1997-2003 by The XFree86 Project, Inc.
++ * Copyright (c) 2013 Oracle and/or its affiliates. All Rights Reserved.
+  *
+  * Permission is hereby granted, free of charge, to any person obtaining a
+  * copy of this software and associated documentation files (the "Software"),
+@@ -207,9 +208,6 @@ xf86BusProbe(void)
+ #ifdef XSERVER_LIBPCIACCESS
+     xf86PciProbe();
+ #endif
+-#if (defined(__sparc__) || defined(__sparc)) && !defined(__OpenBSD__)
+-    xf86SbusProbe();
+-#endif
+ }
+ 
+ /*