mac802154: remove ieee802154_addr from driver_ops
authorAlexander Aring <alex.aring@gmail.com>
Sat, 25 Oct 2014 15:16:42 +0000 (17:16 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 25 Oct 2014 19:55:39 +0000 (21:55 +0200)
This driver_ops callback function is never used by any driver.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/mac802154.h
net/mac802154/main.c

index eb0e1cb9ca986f9fd4ef61e03b46660ec9e309c5..b07d431c0b1927cd3946dbe523a246a28908785d 100644 (file)
@@ -170,7 +170,6 @@ struct ieee802154_ops {
        int             (*set_hw_addr_filt)(struct ieee802154_hw *hw,
                                            struct ieee802154_hw_addr_filt *filt,
                                            unsigned long changed);
-       int             (*ieee_addr)(struct ieee802154_hw *hw, __le64 addr);
        int             (*set_txpower)(struct ieee802154_hw *hw, int db);
        int             (*set_lbt)(struct ieee802154_hw *hw, bool on);
        int             (*set_cca_mode)(struct ieee802154_hw *hw, u8 mode);
index 5ce3184bc6748f1110fe79b4462175c4b636c826..0e9a6a203f7a96a66878724634b344eae1d142fd 100644 (file)
@@ -61,16 +61,6 @@ int mac802154_slave_open(struct net_device *dev)
                        goto err;
        }
 
-       if (local->ops->ieee_addr) {
-               __le64 addr = ieee802154_devaddr_from_raw(dev->dev_addr);
-
-               res = local->ops->ieee_addr(&local->hw, addr);
-               WARN_ON(res);
-               if (res)
-                       goto err;
-               mac802154_dev_set_ieee_addr(dev);
-       }
-
        netif_start_queue(dev);
        return 0;
 err: