Author: nwhitehorn
Date: Tue Jan 20 00:05:43 2009
New Revision: 187457
URL: http://svn.freebsd.org/changeset/base/187457

Log:
  Change the probe priority for PCI and I2C generic bus modules from
  numerical constants to BUS_PROBE_GENERIC.
  
  Suggested by: jhb

Modified:
  head/sys/dev/iicbus/iicbus.c
  head/sys/dev/pci/pci.c

Modified: head/sys/dev/iicbus/iicbus.c
==============================================================================
--- head/sys/dev/iicbus/iicbus.c        Tue Jan 20 00:03:52 2009        
(r187456)
+++ head/sys/dev/iicbus/iicbus.c        Tue Jan 20 00:05:43 2009        
(r187457)
@@ -55,7 +55,7 @@ iicbus_probe(device_t dev)
        device_set_desc(dev, "Philips I2C bus");
 
        /* Allow other subclasses to override this driver. */
-       return (-1000);
+       return (BUS_PROBE_GENERIC);
 }
 
 #if SCAN_IICBUS

Modified: head/sys/dev/pci/pci.c
==============================================================================
--- head/sys/dev/pci/pci.c      Tue Jan 20 00:03:52 2009        (r187456)
+++ head/sys/dev/pci/pci.c      Tue Jan 20 00:05:43 2009        (r187457)
@@ -2644,7 +2644,7 @@ pci_probe(device_t dev)
        device_set_desc(dev, "PCI bus");
 
        /* Allow other subclasses to override this driver. */
-       return (-1000);
+       return (BUS_PROBE_GENERIC);
 }
 
 static int
_______________________________________________
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