aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/p54/p54common.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/p54/p54common.c')
-rw-r--r--drivers/net/wireless/p54/p54common.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/net/wireless/p54/p54common.c b/drivers/net/wireless/p54/p54common.c
index 14438a642fdd..42d1cac609a1 100644
--- a/drivers/net/wireless/p54/p54common.c
+++ b/drivers/net/wireless/p54/p54common.c
@@ -2489,6 +2489,21 @@ struct ieee80211_hw *p54_init_common(size_t priv_data_len)
2489} 2489}
2490EXPORT_SYMBOL_GPL(p54_init_common); 2490EXPORT_SYMBOL_GPL(p54_init_common);
2491 2491
2492int p54_register_common(struct ieee80211_hw *dev, struct device *pdev)
2493{
2494 int err;
2495
2496 err = ieee80211_register_hw(dev);
2497 if (err) {
2498 dev_err(pdev, "Cannot register device (%d).\n", err);
2499 return err;
2500 }
2501
2502 dev_info(pdev, "is registered as '%s'\n", wiphy_name(dev->wiphy));
2503 return 0;
2504}
2505EXPORT_SYMBOL_GPL(p54_register_common);
2506
2492void p54_free_common(struct ieee80211_hw *dev) 2507void p54_free_common(struct ieee80211_hw *dev)
2493{ 2508{
2494 struct p54_common *priv = dev->priv; 2509 struct p54_common *priv = dev->priv;