}
SET_NETDEV_DEV(dev, &pdev->dev);
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
- SET_MODULE_OWNER(THIS_MODULE);
-#endif
dev->base_addr = (unsigned long)ioremap_nocache(mem->start, mem_size);
dev->tx_timeout = can_tx_timeout;
dev->watchdog_timeo = TX_TIMEOUT;
-
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
- SET_MODULE_OWNER(dev);
-#endif
}
static struct net_device* can_create_netdev(int dev_num, int hw_regs)
}
SET_NETDEV_DEV(dev, &pdev->dev);
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
- SET_MODULE_OWNER(THIS_MODULE);
-#endif
dev->base_addr = (unsigned long)ioremap_nocache(mem->start, mem_size);
dev->tx_timeout = can_tx_timeout;
dev->watchdog_timeo = TX_TIMEOUT;
-
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
- SET_MODULE_OWNER(dev);
-#endif
}
static struct net_device* can_create_netdev(int dev_num, int hw_regs)
dev->addr_len = 0;
dev->tx_queue_len = 10;
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
- SET_MODULE_OWNER(dev);
-#endif
-
dev->mtu = sizeof(struct can_frame);
dev->type = ARPHRD_CAN;
#ifdef SLC_CHECK_TRANSMIT
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
dev->get_stats = vcan_get_stats;
#endif
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
- SET_MODULE_OWNER(dev);
-#endif
}
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)