--- zzzz-none-000/linux-3.10.107/drivers/net/wan/lapbether.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/net/wan/lapbether.c 2021-02-04 17:41:59.000000000 +0000 @@ -40,7 +40,6 @@ #include #include #include -#include #include #include #include @@ -325,8 +324,8 @@ ASSERT_RTNL(); - ndev = alloc_netdev(sizeof(*lapbeth), "lapb%d", - lapbeth_setup); + ndev = alloc_netdev(sizeof(*lapbeth), "lapb%d", NET_NAME_UNKNOWN, + lapbeth_setup); if (!ndev) goto out; @@ -370,7 +369,7 @@ unsigned long event, void *ptr) { struct lapbethdev *lapbeth; - struct net_device *dev = ptr; + struct net_device *dev = netdev_notifier_info_to_dev(ptr); if (dev_net(dev) != &init_net) return NOTIFY_DONE;