S_IFCHR | S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP,
&can_fops, (void*)objects_p[i]);
#else
+ #if (LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,14))
this_dev=class_device_create(can_class, MKDEV(major, dev_minor), NULL, "can%d", dev_minor);
+ #else /* >= 2.6.15 */
+ this_dev=class_device_create(can_class, NULL, MKDEV(major, dev_minor), NULL, "can%d", dev_minor);
+ #endif /* >= 2.6.15 */
if(!this_dev){
CANMSG("problem to create device \"can%d\" in the class \"can\"\n", dev_minor);
}else{
#include "../include/can_sysdep.h"
#include "../include/main.h"
#include "../include/sja1000p.h"
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,14))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,14)) && defined(CONFIG_GENERIC_HARDIRQS)
#include <linux/irq.h>
#endif /* <2.6.14 */
#include <asm/arch/hardware.h>