aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Richter <stefanr@s5r6.in-berlin.de>2007-04-01 20:19:48 -0400
committerStefan Richter <stefanr@s5r6.in-berlin.de>2007-04-29 18:00:31 -0400
commit8a62bf7978eaa428e400677d5e5f5441262f79b1 (patch)
tree9045a98f19971b5a4de70e7952e5628cbf9091fc
parent599bba9647f7813c09bf921c72351609430c8a33 (diff)
ieee1394: eth1394: omit useless set_mac_address callback
We can't reconfigure the MAC address, hence we don't need the callback. Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
-rw-r--r--drivers/ieee1394/eth1394.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/ieee1394/eth1394.c b/drivers/ieee1394/eth1394.c
index 2d226a383d49..fc6c7fd728d9 100644
--- a/drivers/ieee1394/eth1394.c
+++ b/drivers/ieee1394/eth1394.c
@@ -167,8 +167,6 @@ static int ether1394_header_cache(struct neighbour *neigh, struct hh_cache *hh);
167static void ether1394_header_cache_update(struct hh_cache *hh, 167static void ether1394_header_cache_update(struct hh_cache *hh,
168 struct net_device *dev, 168 struct net_device *dev,
169 unsigned char *haddr); 169 unsigned char *haddr);
170static int ether1394_mac_addr(struct net_device *dev, void *p);
171
172static int ether1394_tx(struct sk_buff *skb, struct net_device *dev); 170static int ether1394_tx(struct sk_buff *skb, struct net_device *dev);
173static void ether1394_iso(struct hpsb_iso *iso); 171static void ether1394_iso(struct hpsb_iso *iso);
174 172
@@ -512,7 +510,7 @@ static void ether1394_init_dev(struct net_device *dev)
512 dev->hard_header_cache = ether1394_header_cache; 510 dev->hard_header_cache = ether1394_header_cache;
513 dev->header_cache_update= ether1394_header_cache_update; 511 dev->header_cache_update= ether1394_header_cache_update;
514 dev->hard_header_parse = ether1394_header_parse; 512 dev->hard_header_parse = ether1394_header_parse;
515 dev->set_mac_address = ether1394_mac_addr; 513 dev->set_mac_address = NULL;
516 SET_ETHTOOL_OPS(dev, &ethtool_ops); 514 SET_ETHTOOL_OPS(dev, &ethtool_ops);
517 515
518 /* Some constants */ 516 /* Some constants */
@@ -754,16 +752,6 @@ static void ether1394_header_cache_update(struct hh_cache *hh,
754 memcpy((u8 *)hh->hh_data + 16 - ETH1394_HLEN, haddr, dev->addr_len); 752 memcpy((u8 *)hh->hh_data + 16 - ETH1394_HLEN, haddr, dev->addr_len);
755} 753}
756 754
757static int ether1394_mac_addr(struct net_device *dev, void *p)
758{
759 if (netif_running(dev))
760 return -EBUSY;
761
762 /* Not going to allow setting the MAC address, we really need to use
763 * the real one supplied by the hardware */
764 return -EINVAL;
765}
766
767/****************************************** 755/******************************************
768 * Datagram reception code 756 * Datagram reception code
769 ******************************************/ 757 ******************************************/