return -EBUSY;
}
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,12)
err = proto_register(cp->prot, 0);
if (err < 0)
return err;
printk(KERN_ERR "CAN: protocol %d is not registered\n", proto);
return -ESRCH;
}
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,12)
proto_unregister(cp->prot);
#endif
proto_tab[proto] = NULL;
sock->ops = cp->ops;
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,12)
sk = sk_alloc(PF_CAN, GFP_KERNEL, cp->prot, 1);
if (!sk)
return -ENOMEM;
DBG("created sock: %p\n", sk);
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,12)
if (sk->sk_prot->init)
ret = sk->sk_prot->init(sk);
#define BCM_CAP CAP_NET_RAW
#endif
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,12)
struct bcm_sock {
struct sock sk;
struct bcm_opt opt;
#undef CAN_RAW_SUPPORT_REBIND /* allow bind on already bound socket */
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,12)
struct raw_sock {
struct sock sk;
struct raw_opt opt;