在卸载驱动时,出现以下错误提示:
Trying to free already-free IRQ 49
表示中断没有释放成功
检查中断申请函数request_irq()与中断释放函数free_irq()的最后一个参数(void *dev 设备结构体)要保持一致,必须是同一个指针。
int request_irq(unsigned int irq, irq_handler_t handler, unsigned long flags, const char *name, void *dev)
与
void free_irq(unsigned int irq, void *dev)
以上两个函数,在使用的时候,最后一个参数必须保持一致,问题解决。
301



被折叠的 条评论
为什么被折叠?



