Forum Discussion
Altera_Forum
Honored Contributor
21 years agorequsting interrupt fails
Hello, I have an UL with one interrupt. When I try to request the interrupt, it fails. Here is the code of my driver: static int __init mod_init(void)
{
u8 errorcode;
printk("DSP: D...
Altera_Forum
Honored Contributor
21 years agoHi MRKs,
The value returned from request_irq() is either 0 to indicate success or a negative error code ... just test for zero & you should be fine: if( request_irq(IRQ_NR, driver_isr, SA_INTERRUPT|SA_SHIRQ, "dsp", &fops) == 0) or test for zero Regards, --Scott