Author: jhb
Date: Mon Feb  2 22:06:20 2009
New Revision: 188033
URL: http://svn.freebsd.org/changeset/base/188033

Log:
  Goof, catch up to constant rename (I renamed it to match the overall PCI
  style of having register offsets start with PCIR_* rather than PCI_*).
  
  Submitted by: rss

Modified:
  head/sys/dev/cardbus/cardbus.c

Modified: head/sys/dev/cardbus/cardbus.c
==============================================================================
--- head/sys/dev/cardbus/cardbus.c      Mon Feb  2 22:04:40 2009        
(r188032)
+++ head/sys/dev/cardbus/cardbus.c      Mon Feb  2 22:06:20 2009        
(r188033)
@@ -143,7 +143,7 @@ cardbus_device_setup_regs(pcicfgregs *cf
         * Some cards power up with garbage in their BARs.  This
         * code clears all that junk out.
         */
-       for (i = 0; i < PCI_MAX_BAR_0; i++)
+       for (i = 0; i < PCIR_MAX_BAR_0; i++)
                pci_write_config(dev, PCIR_BAR(i), 0, 4);
 
        cfg->intline =
_______________________________________________
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