]> err.no Git - linux-2.6/blobdiff - drivers/net/wan/hdlc_raw.c
Generic HDLC - remove now unneeded hdlc_device_desc
[linux-2.6] / drivers / net / wan / hdlc_raw.c
index fe3cae5c6b9d07a267fde91d3051c950ea11e906..bbbb819d764cbc068f4fb9646cba63c8c2b226f6 100644 (file)
@@ -82,16 +82,13 @@ static int raw_ioctl(struct net_device *dev, struct ifreq *ifr)
                if (result)
                        return result;
 
-               result = attach_hdlc_protocol(dev, &proto, NULL,
+               result = attach_hdlc_protocol(dev, &proto,
                                              sizeof(raw_hdlc_proto));
                if (result)
                        return result;
                memcpy(hdlc->state, &new_settings, size);
                dev->hard_start_xmit = hdlc->xmit;
-               dev->hard_header = NULL;
                dev->type = ARPHRD_RAWHDLC;
-               dev->flags = IFF_POINTOPOINT | IFF_NOARP;
-               dev->addr_len = 0;
                netif_dormant_off(dev);
                return 0;
        }