aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ieee1394/eth1394.c10
-rw-r--r--drivers/net/wireless/airo.c7
-rw-r--r--drivers/s390/net/qeth_main.c6
3 files changed, 9 insertions, 14 deletions
diff --git a/drivers/ieee1394/eth1394.c b/drivers/ieee1394/eth1394.c
index 33b80817d68c..b31f90082e35 100644
--- a/drivers/ieee1394/eth1394.c
+++ b/drivers/ieee1394/eth1394.c
@@ -162,7 +162,8 @@ static int ether1394_header(struct sk_buff *skb, struct net_device *dev,
162 unsigned short type, void *daddr, void *saddr, 162 unsigned short type, void *daddr, void *saddr,
163 unsigned len); 163 unsigned len);
164static int ether1394_rebuild_header(struct sk_buff *skb); 164static int ether1394_rebuild_header(struct sk_buff *skb);
165static int ether1394_header_parse(struct sk_buff *skb, unsigned char *haddr); 165static int ether1394_header_parse(const struct sk_buff *skb,
166 unsigned char *haddr);
166static int ether1394_header_cache(struct neighbour *neigh, struct hh_cache *hh); 167static int ether1394_header_cache(struct neighbour *neigh, struct hh_cache *hh);
167static void ether1394_header_cache_update(struct hh_cache *hh, 168static void ether1394_header_cache_update(struct hh_cache *hh,
168 struct net_device *dev, 169 struct net_device *dev,
@@ -751,11 +752,10 @@ static int ether1394_rebuild_header(struct sk_buff *skb)
751 return 0; 752 return 0;
752} 753}
753 754
754static int ether1394_header_parse(struct sk_buff *skb, unsigned char *haddr) 755static int ether1394_header_parse(const struct sk_buff *skb,
756 unsigned char *haddr)
755{ 757{
756 struct net_device *dev = skb->dev; 758 memcpy(haddr, skb->dev->dev_addr, ETH1394_ALEN);
757
758 memcpy(haddr, dev->dev_addr, ETH1394_ALEN);
759 return ETH1394_ALEN; 759 return ETH1394_ALEN;
760} 760}
761 761
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c
index 95d3cd1c49a7..cd03a61359aa 100644
--- a/drivers/net/wireless/airo.c
+++ b/drivers/net/wireless/airo.c
@@ -2481,7 +2481,7 @@ void stop_airo_card( struct net_device *dev, int freeres )
2481 2481
2482EXPORT_SYMBOL(stop_airo_card); 2482EXPORT_SYMBOL(stop_airo_card);
2483 2483
2484static int wll_header_parse(struct sk_buff *skb, unsigned char *haddr) 2484static int wll_header_parse(const struct sk_buff *skb, unsigned char *haddr)
2485{ 2485{
2486 memcpy(haddr, skb_mac_header(skb) + 10, ETH_ALEN); 2486 memcpy(haddr, skb_mac_header(skb) + 10, ETH_ALEN);
2487 return ETH_ALEN; 2487 return ETH_ALEN;
@@ -2698,11 +2698,6 @@ static int mpi_map_card(struct airo_info *ai, struct pci_dev *pci)
2698 2698
2699static void wifi_setup(struct net_device *dev) 2699static void wifi_setup(struct net_device *dev)
2700{ 2700{
2701 dev->hard_header = NULL;
2702 dev->rebuild_header = NULL;
2703 dev->hard_header_cache = NULL;
2704 dev->header_cache_update= NULL;
2705
2706 dev->hard_header_parse = wll_header_parse; 2701 dev->hard_header_parse = wll_header_parse;
2707 dev->hard_start_xmit = &airo_start_xmit11; 2702 dev->hard_start_xmit = &airo_start_xmit11;
2708 dev->get_stats = &airo_get_stats; 2703 dev->get_stats = &airo_get_stats;
diff --git a/drivers/s390/net/qeth_main.c b/drivers/s390/net/qeth_main.c
index 8c46978e0afa..65225b3989dd 100644
--- a/drivers/s390/net/qeth_main.c
+++ b/drivers/s390/net/qeth_main.c
@@ -6561,10 +6561,10 @@ static struct ethtool_ops qeth_ethtool_ops = {
6561}; 6561};
6562 6562
6563static int 6563static int
6564qeth_hard_header_parse(struct sk_buff *skb, unsigned char *haddr) 6564qeth_hard_header_parse(const struct sk_buff *skb, unsigned char *haddr)
6565{ 6565{
6566 struct qeth_card *card; 6566 const struct qeth_card *card;
6567 struct ethhdr *eth; 6567 const struct ethhdr *eth;
6568 6568
6569 card = qeth_get_card_from_dev(skb->dev); 6569 card = qeth_get_card_from_dev(skb->dev);
6570 if (card->options.layer2) 6570 if (card->options.layer2)