aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/bcm/Bcmnet.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-10-29 07:44:45 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-10-29 20:43:23 -0700
commit2e44f765dfd3a8592c2d6b6005be061eccdee137 (patch)
treef4ece9e79b904800373541eac15ea187b35f5d60 /drivers/staging/bcm/Bcmnet.c
parentMerge branch 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip (diff)
downloadlinux-dev-2e44f765dfd3a8592c2d6b6005be061eccdee137.tar.xz
linux-dev-2e44f765dfd3a8592c2d6b6005be061eccdee137.zip
beceem: add module information
Add description and version information to the driver. Make USB device table exported as alias so device will be autoloaded. Get rid of useless noise message on boot. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Diffstat (limited to 'drivers/staging/bcm/Bcmnet.c')
-rw-r--r--drivers/staging/bcm/Bcmnet.c25
1 files changed, 11 insertions, 14 deletions
diff --git a/drivers/staging/bcm/Bcmnet.c b/drivers/staging/bcm/Bcmnet.c
index bc2969821421..4d7d8cd4bf43 100644
--- a/drivers/staging/bcm/Bcmnet.c
+++ b/drivers/staging/bcm/Bcmnet.c
@@ -1,5 +1,9 @@
#include "headers.h"
+#define DRV_DESCRIPTION "Beceem Communications Inc. WiMAX driver"
+#define DRV_VERSION "5.2.7.3P1"
+#define DRV_COPYRIGHT "Copyright 2010. Beceem Communications Inc"
+
static INT bcm_notify_event(struct notifier_block *nb, ULONG event, PVOID dev)
{
struct net_device *ndev = (struct net_device*)dev;
@@ -236,29 +240,22 @@ void bcm_unregister_networkdev(PMINI_ADAPTER Adapter)
static int bcm_init(void)
{
- int result;
- result = InterfaceInitialize();
- if(result)
- {
- printk("Initialisation failed for usbbcm");
- }
- else
- {
- printk("Initialised usbbcm");
- }
- return result;
+ printk(KERN_INFO "%s, %s\n", DRV_DESCRIPTION, DRV_VERSION);
+ printk(KERN_INFO "%s\n", DRV_COPYRIGHT);
+
+ return InterfaceInitialize();
}
static void bcm_exit(void)
{
- printk("%s %s Calling InterfaceExit\n",__FILE__, __FUNCTION__);
InterfaceExit();
- printk("%s %s InterfaceExit returned\n",__FILE__, __FUNCTION__);
}
module_init(bcm_init);
module_exit(bcm_exit);
-MODULE_LICENSE ("GPL");
+MODULE_DESCRIPTION(DRV_DESCRIPTION);
+MODULE_VERSION(DRV_VERSION);
+MODULE_LICENSE ("GPL");