#if (defined (MODVERSIONS) && !defined(NOVER))
#include <linux/modversions.h>
/*#include "../include/main.ver"*/
#if (defined (MODVERSIONS) && !defined(NOVER))
#include <linux/modversions.h>
/*#include "../include/main.ver"*/
struct file_operations can_fops=
{
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,3,0))
struct file_operations can_fops=
{
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,3,0))
static ssize_t show_xxx(struct class_device *cdev, char *buf)
{
return sprintf(buf, "xxxx\n");
static ssize_t show_xxx(struct class_device *cdev, char *buf)
{
return sprintf(buf, "xxxx\n");
goto request_io_error;
candev->flags|=CANDEV_IO_RESERVED;
}
for (i=0; i<hardware_p->nr_boards; i++) {
candev=hardware_p->candevice[i];
goto request_io_error;
candev->flags|=CANDEV_IO_RESERVED;
}
for (i=0; i<hardware_p->nr_boards; i++) {
candev=hardware_p->candevice[i];
CANMSG("Error deallocating memory\n");
unregister_chrdev(major,DEVICE_NAME);
CANMSG("Error deallocating memory\n");
unregister_chrdev(major,DEVICE_NAME);