X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/dd8f47bb1f3be71c28588fdbcf69ef3b9656d9f4..1d20caee804d28a792dcacbf8424dc23b80c6370:/lincan/src/sysdep_lnx.c diff --git a/lincan/src/sysdep_lnx.c b/lincan/src/sysdep_lnx.c index 2161fee..d01105c 100644 --- a/lincan/src/sysdep_lnx.c +++ b/lincan/src/sysdep_lnx.c @@ -20,6 +20,9 @@ * components/comm/contrib directory. */ #endif +#ifndef IRQF_SHARED +#define IRQF_SHARED SA_SHIRQ +#endif /*IRQF_SHARED*/ /** * can_checked_malloc - memory allocation with registering of requested blocks @@ -223,7 +226,7 @@ int can_chip_setup_irq(struct canchip_t *chip) return 1; if ((chip->flags & CHIP_IRQ_VME) == 0) { - if (request_irq(chip->chip_irq,can_default_irq_dispatch,SA_SHIRQ,DEVICE_NAME,chip)) + if (request_irq(chip->chip_irq,can_default_irq_dispatch,IRQF_SHARED,DEVICE_NAME,chip)) return -1; else { DEBUGMSG("Registered interrupt %d\n",chip->chip_irq);