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;
chip->write_register=candev->hwspecops->write_register;
chip->read_register=candev->hwspecops->read_register;
+ chip->spi_transfer=candev->hwspecops->spi_transfer;
+ chip->spi_acquire_bus=candev->hwspecops->spi_acquire_bus;
+ chip->spi_release_bus=candev->hwspecops->spi_release_bus;
+
chip->chipspecops=can_checked_malloc(sizeof(struct chipspecops_t));
if (chip->chipspecops==NULL)