/[base]/head/sys/dev/ahci/ahci.c
ViewVC logotype

Diff of /head/sys/dev/ahci/ahci.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 271200 by mav, Sat Sep 6 15:37:55 2014 UTC revision 271201 by imp, Sat Sep 6 18:20:50 2014 UTC
# Line 229  ahci_attach(device_t dev) Line 229  ahci_attach(device_t dev)
229    
230          ahci_ctlr_setup(dev);          ahci_ctlr_setup(dev);
231    
232            /* Setup interrupts. */
233            if (ahci_setup_interrupt(dev)) {
234                    bus_dma_tag_destroy(ctlr->dma_tag);
235                    bus_release_resource(dev, SYS_RES_MEMORY, ctlr->r_rid,
236                        ctlr->r_mem);
237                    rman_fini(&ctlr->sc_iomem);
238                    return ENXIO;
239            }
240    
241          i = 0;          i = 0;
242          for (u = ctlr->ichannels; u != 0; u >>= 1)          for (u = ctlr->ichannels; u != 0; u >>= 1)
243                  i += (u & 1);                  i += (u & 1);

Legend:
Removed from v.271200  
changed lines
  Added in v.271201

  ViewVC Help
Powered by ViewVC 1.1.27