220-can_fix_irq_request.patch 788 B

1234567891011121314151617181920212223
  1. --- a/Embedded/src/CAN/can_main.c
  2. +++ b/Embedded/src/CAN/can_main.c
  3. @@ -654,7 +654,7 @@ int can_dev_io(struct inode *inode, stru
  4. /*****************************************************************************
  5. * Interrupt handler.
  6. *****************************************************************************/
  7. -irqreturn_t can_irq_handler(int irq, void *dev_id, struct pt_regs *regs)
  8. +irqreturn_t can_irq_handler(int irq, void *dev_id)
  9. {
  10. can_os_t *can_os = (can_os_t *) dev_id;
  11. unsigned int int_status;
  12. --- a/Embedded/src/CAN/can_main.h
  13. +++ b/Embedded/src/CAN/can_main.h
  14. @@ -165,8 +165,7 @@ int can_dev_io(
  15. irqreturn_t can_irq_handler(
  16. int irq,
  17. - void *dev_id,
  18. - struct pt_regs *regs);
  19. + void *dev_id);
  20. void can_tasklet(
  21. unsigned long arg