candev->dev_base_addr=io[card];
clock=clockfreq[card];
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10))
+ kref_init(&candev->refcount);
+#endif
+
candev->hwspecops=(struct hwspecops_t *)can_checked_malloc(sizeof(struct hwspecops_t));
if (candev->hwspecops==NULL)
goto error_nomem;