cleaned up the irq/dma detect code