summaryrefslogtreecommitdiff
path: root/drivers/staging/easycap
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2011-02-09 01:12:41 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-09 11:59:04 -0800
commitaff512c8a4582c7f74af57bb09a9979edf92b6d8 (patch)
treef6e0e15a23f86b034b8fe70b4a5510f5c8c1a5b8 /drivers/staging/easycap
parentee99aa4928129d4aad9087988db6b7815ecdc1d5 (diff)
staging/easycap: prefer printk over SAY in module entry functions
Use INFO level when registering driver and ERR for error. Drop messages from oneliner exit function Cc: Mike Thomas <rmthomas@sciolus.org> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/easycap')
-rw-r--r--drivers/staging/easycap/easycap_main.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/staging/easycap/easycap_main.c b/drivers/staging/easycap/easycap_main.c
index cfdbb575322d..4385236b2883 100644
--- a/drivers/staging/easycap/easycap_main.c
+++ b/drivers/staging/easycap/easycap_main.c
@@ -4829,10 +4829,10 @@ static int __init easycap_module_init(void)
{
int k, rc;
- SAY("========easycap=======\n");
+ printk(KERN_INFO "Easycap version: "EASYCAP_DRIVER_VERSION "\n");
+
JOT(4, "begins. %i=debug %i=bars %i=gain\n",
easycap_debug, easycap_bars, easycap_gain);
- SAY("version: " EASYCAP_DRIVER_VERSION "\n");
mutex_init(&mutex_dongle);
for (k = 0; k < DONGLE_MANY; k++) {
@@ -4840,22 +4840,16 @@ static int __init easycap_module_init(void)
mutex_init(&easycapdc60_dongle[k].mutex_video);
mutex_init(&easycapdc60_dongle[k].mutex_audio);
}
- JOT(4, "registering driver easycap\n");
rc = usb_register(&easycap_usb_driver);
if (rc)
- SAY("ERROR: usb_register returned %i\n", rc);
+ printk(KERN_ERR "Easycap: usb_register failed rc=%d\n", rc);
- JOT(4, "ends\n");
return rc;
}
/*****************************************************************************/
static void __exit easycap_module_exit(void)
{
- JOT(4, "begins\n");
-
usb_deregister(&easycap_usb_driver);
-
- JOT(4, "ends\n");
}
/*****************************************************************************/