diff options
author | Piotr Haber <phaber@broadcom.com> | 2012-11-28 15:44:08 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-11-30 13:38:17 -0500 |
commit | 8e21df23894e12937fb3b51197bf5d0c4d7cc8ba (patch) | |
tree | db931d33e29c6149050f630d00f268a6f865a863 /drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c | |
parent | 57fe504817ccec9b6ac23e973d2925343bf1e3b6 (diff) |
brcmsmac: hardware info in debugfs
Put basic information about hardware in debugfs.
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Piotr Haber <phaber@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c')
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c b/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c index 976720ccf17a..85dbaf8ac997 100644 --- a/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c +++ b/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c | |||
@@ -846,8 +846,10 @@ static void brcms_free(struct brcms_info *wl) | |||
846 | /* kill dpc */ | 846 | /* kill dpc */ |
847 | tasklet_kill(&wl->tasklet); | 847 | tasklet_kill(&wl->tasklet); |
848 | 848 | ||
849 | if (wl->pub) | 849 | if (wl->pub) { |
850 | brcms_debugfs_detach(wl->pub); | ||
850 | brcms_c_module_unregister(wl->pub, "linux", wl); | 851 | brcms_c_module_unregister(wl->pub, "linux", wl); |
852 | } | ||
851 | 853 | ||
852 | /* free common resources */ | 854 | /* free common resources */ |
853 | if (wl->wlc) { | 855 | if (wl->wlc) { |
@@ -1077,6 +1079,8 @@ static struct brcms_info *brcms_attach(struct bcma_device *pdev) | |||
1077 | regulatory_hint(wl->wiphy, wl->pub->srom_ccode)) | 1079 | regulatory_hint(wl->wiphy, wl->pub->srom_ccode)) |
1078 | wiphy_err(wl->wiphy, "%s: regulatory hint failed\n", __func__); | 1080 | wiphy_err(wl->wiphy, "%s: regulatory hint failed\n", __func__); |
1079 | 1081 | ||
1082 | brcms_debugfs_attach(wl->pub); | ||
1083 | brcms_debugfs_create_files(wl->pub); | ||
1080 | n_adapters_found++; | 1084 | n_adapters_found++; |
1081 | return wl; | 1085 | return wl; |
1082 | 1086 | ||
@@ -1185,6 +1189,7 @@ static DECLARE_WORK(brcms_driver_work, brcms_driver_init); | |||
1185 | 1189 | ||
1186 | static int __init brcms_module_init(void) | 1190 | static int __init brcms_module_init(void) |
1187 | { | 1191 | { |
1192 | brcms_debugfs_init(); | ||
1188 | if (!schedule_work(&brcms_driver_work)) | 1193 | if (!schedule_work(&brcms_driver_work)) |
1189 | return -EBUSY; | 1194 | return -EBUSY; |
1190 | 1195 | ||
@@ -1202,6 +1207,7 @@ static void __exit brcms_module_exit(void) | |||
1202 | { | 1207 | { |
1203 | cancel_work_sync(&brcms_driver_work); | 1208 | cancel_work_sync(&brcms_driver_work); |
1204 | bcma_driver_unregister(&brcms_bcma_driver); | 1209 | bcma_driver_unregister(&brcms_bcma_driver); |
1210 | brcms_debugfs_exit(); | ||
1205 | } | 1211 | } |
1206 | 1212 | ||
1207 | module_init(brcms_module_init); | 1213 | module_init(brcms_module_init); |