As i compared the ubuntu sources and the sources of the working tar.gz it seems to be a simple patch:
--- linux-restricted-modules-2.6.24-2.6.24.13/fritz/fcpci/src/driver.c +++ AVM-Fritz/fcpci-3.11.07/driver.c @@ -194,7 +194,7 @@ } lib_strncpy (ctrl->serial, tmp, CAPI_SERIAL_LEN); lib_memcpy (&ctrl->profile, card->string[6], sizeof (capi_profile)); - strncpy (ctrl->manu, "AVM GmbH", CAPI_MANUFACTURER_LEN); + lib_strncpy (ctrl->manu, "AVM GmbH", CAPI_MANUFACTURER_LEN); ctrl->version.majorversion = 2; ctrl->version.minorversion = 0; tmp = card->string[0];
There are two more differences, but i think they both deal with the same problem in a different place:
--- linux-restricted-modules-2.6.24-2.6.24.13/fritz/fcpci/src/defs.h +++ AVM-Fritz/fcpci-3.11.07/defs.h @@ -30,13 +30,6 @@ #ifndef TRUE # define TRUE (1==1) # define FALSE (1==0) -#endif - -#if !defined(SA_SHIRQ) -#define SA_SHIRQ IRQF_SHARED -#endif -#if !defined(SA_INTERRUPT) -#define SA_INTERRUPT IRQF_DISABLED #endif
/*---------------------------------------------------------------------------*\
--- linux-restricted-modules-2.6.24-2.6.24.13/fritz/fcpci/src/driver.c +++ AVM-Fritz/fcpci-3.11.07/driver.c @@ -374,7 +374,7 @@ card->irq, &irq_handler, #if defined (__fcpci__) || defined (__fcpcmcia__) - SA_INTERRUPT | SA_SHIRQ, + IRQF_DISABLED | IRQF_SHARED, #else SA_INTERRUPT, #endif
As i compared the ubuntu sources and the sources of the working tar.gz it seems to be a simple patch:
--- linux-restricte d-modules- 2.6.24- 2.6.24. 13/fritz/ fcpci/src/ driver. c fcpci-3. 11.07/driver. c ER_LEN) ; ER_LEN) ; >version. majorversion = 2; >version. minorversion = 0;
+++ AVM-Fritz/
@@ -194,7 +194,7 @@
}
lib_strncpy (ctrl->serial, tmp, CAPI_SERIAL_LEN);
lib_memcpy (&ctrl->profile, card->string[6], sizeof (capi_profile));
- strncpy (ctrl->manu, "AVM GmbH", CAPI_MANUFACTUR
+ lib_strncpy (ctrl->manu, "AVM GmbH", CAPI_MANUFACTUR
ctrl-
ctrl-
tmp = card->string[0];
There are two more differences, but i think they both deal with the same problem in a different place:
--- linux-restricte d-modules- 2.6.24- 2.6.24. 13/fritz/ fcpci/src/ defs.h fcpci-3. 11.07/defs. h SA_INTERRUPT)
+++ AVM-Fritz/
@@ -30,13 +30,6 @@
#ifndef TRUE
# define TRUE (1==1)
# define FALSE (1==0)
-#endif
-
-#if !defined(SA_SHIRQ)
-#define SA_SHIRQ IRQF_SHARED
-#endif
-#if !defined(
-#define SA_INTERRUPT IRQF_DISABLED
#endif
/*---- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -*\
--- linux-restricte d-modules- 2.6.24- 2.6.24. 13/fritz/ fcpci/src/ driver. c fcpci-3. 11.07/driver. c
+++ AVM-Fritz/
@@ -374,7 +374,7 @@
card->irq,
&irq_handler,
#if defined (__fcpci__) || defined (__fcpcmcia__)
- SA_INTERRUPT | SA_SHIRQ,
+ IRQF_DISABLED | IRQF_SHARED,
#else
SA_INTERRUPT,
#endif