Reference:
[NET]: Nuke SET_MODULE_OWNER macro.
It's been a useless no-op for long enough in 2.6 so I figured it's time to
remove it. The number of people that could object because they're
maintaining unified 2.4 and 2.6 drivers is probably rather small.
[ Handled drivers added by netdev tree and some missed IRDA cases... -DaveM ]
http://git.kernel.org/?p=linux/kernel/git/davem/net-2.6.24.git;a=commit;h=
d19ef7a45e8f177e27fe8b085a68f0f3d68c7a05
git-svn-id: svn://svn.berlios.de//socketcan/trunk@462
030b6a49-0b11-0410-94ab-
b0dab22257f2
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;
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,23)