Skip to content

Commit

Permalink
mac802154: remove ieee802154_addr from driver_ops
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexander Aring authored and Marcel Holtmann committed Oct 25, 2014
1 parent f773054 commit c6f635f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion include/net/mac802154.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
10 changes: 0 additions & 10 deletions net/mac802154/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c6f635f

Please sign in to comment.