On Tue, Oct 20, 2009 at 07:39:53PM +0200, Wolfgang Grandegger wrote:
> Heinz-Jürgen Oertel wrote:
> > Hello, 
> > I hope someone can help. I did a svn update today. 
> > I try to compile Socketcan for SJA1000 for kernel 2.6.25 ARCH=arm
> > and get 
> > error: #error This driver does not support Kernel versions < 2.6.27
> 
> This does not come from the SJA1000 driver itself but from the SJA1000
> platform driver, I guess.
> 
> > Who can tell me what the latest version is I can use and how I can obtain it
> > via the berlios svn.
> 
> Please use "kernel/2.6" from:
> 
> $ svn checkout http://svn.berlios.de/svnroot/repos/socketcan/trunk
> 
> But the sja1000_platform does not yet support Kernel versions < 2.6.27.
> What errors do you get if you use in sja1000_platform.c:
> 
> #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,25)
> #error This driver does not support Kernel versions < 2.6.25
> #endif
> 
> Or just comment out the "#error" line. Maybe you are lucky and no
> modifications are required.
I have the sja1000_platform running on a 2.6.25.
Needs this mod.
The reason for being quiet on this is that is this kind of modifications
will grow in the future.

Signed-of-by: Kurt Van Dijck <[email protected]>

--- drivers/net/can/sja1000/sja1000_platform.c  2009-10-16 09:30:14.000000000 
+0200
+++ /srv/squamata/linux/trunk/drivers/net/can/sja1000/sja1000_platform.c        
2009-10-15 10:16:14.000000000 +0200
@@ -35,7 +35,8 @@
 #define DRV_NAME "sja1000_platform"
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27)
-#error This driver does not support Kernel versions < 2.6.27
+#define resource_size(res)     ((res)->end + 1 - (res->start))
+/* #error This driver does not support Kernel versions < 2.6.27 */
 #endif
 
 MODULE_AUTHOR("Sascha Hauer <[email protected]>");

_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users

Reply via email to