mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
net: remove COMPAT_NET_DEV_OPS
All drivers are already converted to new net_device_ops API and nobody uses old API anymore. Signed-off-by: Alexander Beregalov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
c649c0e31d
commit
e3804cbebb
8 changed files with 0 additions and 123 deletions
|
|
@ -9,21 +9,10 @@
|
|||
#include <linux/if_arp.h>
|
||||
#include <linux/if_ltalk.h>
|
||||
|
||||
#ifdef CONFIG_COMPAT_NET_DEV_OPS
|
||||
static int ltalk_change_mtu(struct net_device *dev, int mtu)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
#endif
|
||||
|
||||
static void ltalk_setup(struct net_device *dev)
|
||||
{
|
||||
/* Fill in the fields of the device structure with localtalk-generic values. */
|
||||
|
||||
#ifdef CONFIG_COMPAT_NET_DEV_OPS
|
||||
dev->change_mtu = ltalk_change_mtu;
|
||||
#endif
|
||||
|
||||
dev->type = ARPHRD_LOCALTLK;
|
||||
dev->hard_header_len = LTALK_HLEN;
|
||||
dev->mtu = LTALK_MTU;
|
||||
|
|
|
|||
Loading…
Reference in a new issue