version 1.10, 2007/12/16 12:54:44 |
version 1.11, 2007/12/16 23:16:09 |
|
|
cdevp->dv_active = 1; |
cdevp->dv_active = 1; |
|
|
/* if device has interrupt handler, establish it */ |
/* if device has interrupt handler, establish it */ |
if (drp->dr_interrupt != NULL) { |
if (drp->dr_interrupt != NULL && aip->ai_intrno != -1) { |
DPRINTF("devconfig_attach_childs: establishing interrupt %d for %s/%d\n", |
DPRINTF("devconfig_attach_childs: establishing interrupt %d for %s/%d\n", |
aip->ai_intrno, cdevp->dv_name, cdevp->dv_minor); |
aip->ai_intrno, cdevp->dv_name, cdevp->dv_minor); |
intr_establish(aip->ai_intrno, cdevp, drp->dr_interrupt); |
intr_establish(aip->ai_intrno, cdevp, drp->dr_interrupt); |