]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[UMP]: header_ops conversion needed for non-ethernet drivers
authorJeff Dike <jdike@linux.intel.com>
Thu, 18 Oct 2007 02:35:04 +0000 (19:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Oct 2007 02:35:04 +0000 (19:35 -0700)
UML's two non-ethernet drivers need some header_ops conversion.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/um/drivers/slip_kern.c
arch/um/drivers/slirp_kern.c

index ae67e7158e718c495657b51b3b1c933ab61cf0e9..6b4a0f9e38deeb3d4852639ec4c3d83684e5612f 100644 (file)
@@ -31,10 +31,8 @@ void slip_init(struct net_device *dev, void *data)
        slip_proto_init(&spri->slip);
 
        dev->init = NULL;
-       dev->header_cache_update = NULL;
-       dev->hard_header_cache = NULL;
-       dev->hard_header = NULL;
        dev->hard_header_len = 0;
+       dev->header_ops = NULL;
        dev->addr_len = 0;
        dev->type = ARPHRD_SLIP;
        dev->tx_queue_len = 256;
index 240ee650865df79927d0557c81197e7be7283a31..d987af277db9d8f1cc943aa72ab46201e57cbb58 100644 (file)
@@ -34,9 +34,7 @@ void slirp_init(struct net_device *dev, void *data)
 
        dev->init = NULL;
        dev->hard_header_len = 0;
-       dev->header_cache_update = NULL;
-       dev->hard_header_cache = NULL;
-       dev->hard_header = NULL;
+       dev->header_ops = NULL;
        dev->addr_len = 0;
        dev->type = ARPHRD_SLIP;
        dev->tx_queue_len = 256;