003-new_irqf_constants.patch 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --- a/Embedded/src/1588/1588.c
  2. +++ b/Embedded/src/1588/1588.c
  3. @@ -291,7 +291,7 @@ int pci_probe(struct pci_dev *dev, const
  4. }
  5. - if ( request_irq(dev->irq, &timesync_isr, SA_SHIRQ, DRIVERNAME,
  6. + if ( request_irq(dev->irq, &timesync_isr, IRQF_SHARED, DRIVERNAME,
  7. &g_drvr_data) )
  8. {
  9. printk("%s-pci_probe: irq\n", DRIVERNAME);
  10. --- a/Embedded/src/CAN/can_main.c
  11. +++ b/Embedded/src/CAN/can_main.c
  12. @@ -424,7 +424,7 @@ int can_open(struct inode *inode, struct
  13. err = request_irq(
  14. can_os->irq,
  15. can_irq_handler,
  16. - SA_SHIRQ,
  17. + IRQF_SHARED,
  18. iminor(can_os->inode) ? CAN_PROC_1 : CAN_PROC_0,
  19. &(g_can_os[iminor(can_os->inode)])
  20. );
  21. --- a/Embedded/src/EDMA/dma_linux.c
  22. +++ b/Embedded/src/EDMA/dma_linux.c
  23. @@ -367,7 +367,7 @@ int32_t edma_resume(struct pci_dev *dev)
  24. return -ENODEV;
  25. }
  26. - if (request_irq(dev->irq, &edma_irq_handler, SA_SHIRQ,
  27. + if (request_irq(dev->irq, &edma_irq_handler, IRQF_SHARED,
  28. g_char_drvr_name, dev) )
  29. {
  30. @@ -829,7 +829,7 @@ int32_t edma_probe(struct pci_dev * dev,
  31. /*
  32. * Obtain a (shared) Interrupt Request (IRQ) Line from the OS.
  33. */
  34. - if (request_irq(dev->irq, &edma_irq_handler, SA_SHIRQ,
  35. + if (request_irq(dev->irq, &edma_irq_handler, IRQF_SHARED,
  36. g_char_drvr_name, dev) )
  37. {
  38. --- a/Embedded/src/WDT/iwdt.c
  39. +++ b/Embedded/src/WDT/iwdt.c
  40. @@ -1461,7 +1461,7 @@ static int __init wdt_init_one(struct pc
  41. /* Request irq only if wdt_irq is other than 0 */
  42. if (wdt_irq) {
  43. - if (request_irq(wdt_irq, wdt_isr, SA_INTERRUPT | SA_SHIRQ,
  44. + if (request_irq(wdt_irq, wdt_isr, IRQF_DISABLED | IRQF_SHARED,
  45. "iwdt", &wdt_miscdev)) {
  46. printk("IRQ %d is not free.\n", wdt_irq);
  47. return -EIO;