Commit a6316e28 authored by Rafał Miłecki's avatar Rafał Miłecki Committed by John W. Linville

b43: use b43_software_rfkill helper

This removes dealing with pointers directly and allows tracking radio
state with radio_on variable.
Signed-off-by: default avatarRafał Miłecki <zajec5@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 6b9e03e6
...@@ -96,7 +96,7 @@ int b43_phy_init(struct b43_wldev *dev) ...@@ -96,7 +96,7 @@ int b43_phy_init(struct b43_wldev *dev)
phy->channel = ops->get_default_chan(dev); phy->channel = ops->get_default_chan(dev);
ops->software_rfkill(dev, false); b43_software_rfkill(dev, false);
err = ops->init(dev); err = ops->init(dev);
if (err) { if (err) {
b43err(dev->wl, "PHY init failed\n"); b43err(dev->wl, "PHY init failed\n");
...@@ -116,7 +116,7 @@ int b43_phy_init(struct b43_wldev *dev) ...@@ -116,7 +116,7 @@ int b43_phy_init(struct b43_wldev *dev)
if (ops->exit) if (ops->exit)
ops->exit(dev); ops->exit(dev);
err_block_rf: err_block_rf:
ops->software_rfkill(dev, true); b43_software_rfkill(dev, true);
return err; return err;
} }
...@@ -125,7 +125,7 @@ void b43_phy_exit(struct b43_wldev *dev) ...@@ -125,7 +125,7 @@ void b43_phy_exit(struct b43_wldev *dev)
{ {
const struct b43_phy_operations *ops = dev->phy.ops; const struct b43_phy_operations *ops = dev->phy.ops;
ops->software_rfkill(dev, true); b43_software_rfkill(dev, true);
if (ops->exit) if (ops->exit)
ops->exit(dev); ops->exit(dev);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment