Both SoftMAC and FullMAC driver print information upon loading containing
description and version number. The descriptive text has been aligned with
the descriptive text used in Kconfig.

Reviewed-by: Brett Rudley <[email protected]>
Reviewed-by: Henry Ptasinski <[email protected]>
Reviewed-by: Roland Vossen <[email protected]>
Signed-off-by: Arend van Spriel <[email protected]>
---
 drivers/staging/brcm80211/brcmfmac/dhd_linux.c   |   13 +++----------
 drivers/staging/brcm80211/brcmsmac/wl_mac80211.c |   11 +++--------
 2 files changed, 6 insertions(+), 18 deletions(-)

diff --git a/drivers/staging/brcm80211/brcmfmac/dhd_linux.c 
b/drivers/staging/brcm80211/brcmfmac/dhd_linux.c
index 29fff59..c09cfe2 100644
--- a/drivers/staging/brcm80211/brcmfmac/dhd_linux.c
+++ b/drivers/staging/brcm80211/brcmfmac/dhd_linux.c
@@ -387,12 +387,6 @@ module_param(dhd_pktgen_len, uint, 0);
 #define DHD_COMPILED
 #endif
 
-static char dhd_version[] = "Dongle Host Driver, version " EPI_VERSION_STR
-#ifdef DHD_DEBUG
-"\nCompiled in " " on " __DATE__ " at " __TIME__
-#endif
-;
-
 #if defined(CONFIG_WIRELESS_EXT)
 struct iw_statistics *dhd_get_wireless_stats(struct net_device *dev);
 #endif                         /* defined(CONFIG_WIRELESS_EXT) */
@@ -2103,7 +2097,8 @@ dhd_pub_t *dhd_attach(struct osl_info *osh, struct 
dhd_bus *bus,
        dhd->early_suspend.resume = dhd_late_resume;
        register_early_suspend(&dhd->early_suspend);
 #endif
-
+       printk(KERN_DEFAULT "Broadcom IEEE802.11n embedded FullMAC WLAN ");
+       printk(KERN_DEFAULT "Driver, version " EPI_VERSION_STR "\n");
        return &dhd->pub;
 
 fail:
@@ -2466,9 +2461,7 @@ static int __init dhd_module_init(void)
 
        error = dhd_bus_register();
 
-       if (!error)
-               printf("\n%s\n", dhd_version);
-       else {
+       if (error) {
                DHD_ERROR(("%s: sdio_register_driver failed\n", __func__));
                goto faild;
        }
diff --git a/drivers/staging/brcm80211/brcmsmac/wl_mac80211.c 
b/drivers/staging/brcm80211/brcmsmac/wl_mac80211.c
index 6505732..4885732 100644
--- a/drivers/staging/brcm80211/brcmsmac/wl_mac80211.c
+++ b/drivers/staging/brcm80211/brcmsmac/wl_mac80211.c
@@ -738,18 +738,13 @@ static struct wl_info *wl_attach(u16 vendor, u16 device, 
unsigned long regs,
                WL_ERROR("%s: regulatory_hint failed, status %d\n",
                         __func__, err);
        }
-       WL_ERROR("wl%d: Broadcom BCM43xx 802.11 MAC80211 Driver (" 
PHY_VERSION_STR ")",
-                unit);
-
-#ifdef BCMDBG
-       printf(" (Compiled at " __TIME__ " on " __DATE__ ")");
-#endif                         /* BCMDBG */
-       printf("\n");
+       printk(KERN_DEFAULT "wl%d: Broadcom IEEE802.11n PCIe SoftMAC WLAN "
+              "Driver, version " PHY_VERSION_STR "\n", unit);
 
        wl_found++;
        return wl;
 
- fail:
+fail:
        wl_free(wl);
 fail1:
        return NULL;
-- 
1.7.1


_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

Reply via email to