mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -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
|
|
@ -185,10 +185,6 @@ static const struct header_ops fddi_header_ops = {
|
|||
static void fddi_setup(struct net_device *dev)
|
||||
{
|
||||
dev->header_ops = &fddi_header_ops;
|
||||
#ifdef CONFIG_COMPAT_NET_DEV_OPS
|
||||
dev->change_mtu = fddi_change_mtu,
|
||||
#endif
|
||||
|
||||
dev->type = ARPHRD_FDDI;
|
||||
dev->hard_header_len = FDDI_K_SNAP_HLEN+3; /* Assume 802.2 SNAP hdr len + 3 pad bytes */
|
||||
dev->mtu = FDDI_K_SNAP_DLEN; /* Assume max payload of 802.2 SNAP frame */
|
||||
|
|
|
|||
|
|
@ -193,11 +193,6 @@ static const struct header_ops hippi_header_ops = {
|
|||
|
||||
static void hippi_setup(struct net_device *dev)
|
||||
{
|
||||
#ifdef CONFIG_COMPAT_NET_DEV_OPS
|
||||
dev->change_mtu = hippi_change_mtu;
|
||||
dev->set_mac_address = hippi_mac_addr;
|
||||
dev->neigh_setup = hippi_neigh_setup_dev;
|
||||
#endif
|
||||
dev->header_ops = &hippi_header_ops;
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue