|
@@ -224,9 +224,9 @@ void ieee802154_free_device(struct ieee802154_dev *hw)
|
|
|
|
|
|
BUG_ON(!list_empty(&priv->slaves));
|
|
BUG_ON(!list_empty(&priv->slaves));
|
|
|
|
|
|
- wpan_phy_free(priv->phy);
|
|
|
|
-
|
|
|
|
mutex_destroy(&priv->slaves_mtx);
|
|
mutex_destroy(&priv->slaves_mtx);
|
|
|
|
+
|
|
|
|
+ wpan_phy_free(priv->phy);
|
|
}
|
|
}
|
|
EXPORT_SYMBOL(ieee802154_free_device);
|
|
EXPORT_SYMBOL(ieee802154_free_device);
|
|
|
|
|