Diff for /src/sys/bus/pci/pci.c between versions 1.20 and 1.21

version 1.20, 2004/05/13 23:49:13 version 1.21, 2004/05/19 22:52:39
Line 1373  static int Line 1373  static int
 pci_attach(device_t dev)  pci_attach(device_t dev)
 {  {
         int busno;          int busno;
           int lunit = device_get_unit(dev);
   
           cdevsw_add(&pcicdev, -1, lunit);
           make_dev(&pcicdev, lunit, UID_ROOT, GID_WHEEL, 0644, "pci%d", lunit);
   
         /*          /*
          * Since there can be multiple independantly numbered PCI           * Since there can be multiple independantly numbered PCI
Line 1752  pci_assign_interrupt_method(device_t dev Line 1756  pci_assign_interrupt_method(device_t dev
 static int  static int
 pci_modevent(module_t mod, int what, void *arg)  pci_modevent(module_t mod, int what, void *arg)
 {  {
         static dev_t pci_cdev;  
   
         switch (what) {          switch (what) {
         case MOD_LOAD:          case MOD_LOAD:
                 STAILQ_INIT(&pci_devq);                  STAILQ_INIT(&pci_devq);
                 pci_cdev = make_dev(&pcicdev, 0, UID_ROOT, GID_WHEEL, 0644,  
                                     "pci");  
                 break;                  break;
   
         case MOD_UNLOAD:          case MOD_UNLOAD:
                 destroy_dev(pci_cdev);  
                 break;                  break;
         }          }
   

Removed from v.1.20  
changed lines
  Added in v.1.21