#define NR_MAX_WINDOW_SIZE             127                     /* Maximum Window Allowable - 127 */
 #define        NR_MAX_PACKET_SIZE              236                     /* Maximum Packet Length - 236 */
 
-struct nr_private {
-       struct net_device_stats stats;
-};
-
 struct nr_sock {
        struct sock             sock;
        ax25_address            user_addr, source_addr, dest_addr;
 
                struct net_device *dev;
 
                sprintf(name, "nr%d", i);
-               dev = alloc_netdev(sizeof(struct nr_private), name, nr_setup);
+               dev = alloc_netdev(0, name, nr_setup);
                if (!dev) {
                        printk(KERN_ERR "NET/ROM: nr_proto_init - unable to allocate device structure\n");
                        goto fail;
 
 
 int nr_rx_ip(struct sk_buff *skb, struct net_device *dev)
 {
-       struct net_device_stats *stats = netdev_priv(dev);
+       struct net_device_stats *stats = &dev->stats;
 
        if (!netif_running(dev)) {
                stats->rx_dropped++;
 
 static int nr_xmit(struct sk_buff *skb, struct net_device *dev)
 {
-       struct nr_private *nr = netdev_priv(dev);
-       struct net_device_stats *stats = &nr->stats;
+       struct net_device_stats *stats = &dev->stats;
        unsigned int len = skb->len;
 
        if (!nr_route_frame(skb, NULL)) {
        return 0;
 }
 
-static struct net_device_stats *nr_get_stats(struct net_device *dev)
-{
-       struct nr_private *nr = netdev_priv(dev);
-
-       return &nr->stats;
-}
-
 static const struct header_ops nr_header_ops = {
        .create = nr_header,
        .rebuild= nr_rebuild_header,
 
        /* New-style flags. */
        dev->flags              = IFF_NOARP;
-
-       dev->get_stats          = nr_get_stats;
 }