aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/ir-usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/serial/ir-usb.c')
-rw-r--r--drivers/usb/serial/ir-usb.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/drivers/usb/serial/ir-usb.c b/drivers/usb/serial/ir-usb.c
index 5a96692b12a2..e24e2d4f4c1b 100644
--- a/drivers/usb/serial/ir-usb.c
+++ b/drivers/usb/serial/ir-usb.c
@@ -38,15 +38,9 @@
38#include <linux/usb/serial.h> 38#include <linux/usb/serial.h>
39#include <linux/usb/irda.h> 39#include <linux/usb/irda.h>
40 40
41/*
42 * Version Information
43 */
44#define DRIVER_VERSION "v0.5"
45#define DRIVER_AUTHOR "Greg Kroah-Hartman <greg@kroah.com>, Johan Hovold <jhovold@gmail.com>" 41#define DRIVER_AUTHOR "Greg Kroah-Hartman <greg@kroah.com>, Johan Hovold <jhovold@gmail.com>"
46#define DRIVER_DESC "USB IR Dongle driver" 42#define DRIVER_DESC "USB IR Dongle driver"
47 43
48static bool debug;
49
50/* if overridden by the user, then use their value for the size of the read and 44/* if overridden by the user, then use their value for the size of the read and
51 * write urbs */ 45 * write urbs */
52static int buffer_size; 46static int buffer_size;
@@ -430,18 +424,12 @@ err_buf:
430 424
431static int __init ir_init(void) 425static int __init ir_init(void)
432{ 426{
433 int retval;
434
435 if (buffer_size) { 427 if (buffer_size) {
436 ir_device.bulk_in_size = buffer_size; 428 ir_device.bulk_in_size = buffer_size;
437 ir_device.bulk_out_size = buffer_size; 429 ir_device.bulk_out_size = buffer_size;
438 } 430 }
439 431
440 retval = usb_serial_register_drivers(serial_drivers, KBUILD_MODNAME, ir_id_table); 432 return usb_serial_register_drivers(serial_drivers, KBUILD_MODNAME, ir_id_table);
441 if (retval == 0)
442 printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"
443 DRIVER_DESC "\n");
444 return retval;
445} 433}
446 434
447static void __exit ir_exit(void) 435static void __exit ir_exit(void)
@@ -457,8 +445,6 @@ MODULE_AUTHOR(DRIVER_AUTHOR);
457MODULE_DESCRIPTION(DRIVER_DESC); 445MODULE_DESCRIPTION(DRIVER_DESC);
458MODULE_LICENSE("GPL"); 446MODULE_LICENSE("GPL");
459 447
460module_param(debug, bool, S_IRUGO | S_IWUSR);
461MODULE_PARM_DESC(debug, "Debug enabled or not");
462module_param(xbof, int, 0); 448module_param(xbof, int, 0);
463MODULE_PARM_DESC(xbof, "Force specific number of XBOFs"); 449MODULE_PARM_DESC(xbof, "Force specific number of XBOFs");
464module_param(buffer_size, int, 0); 450module_param(buffer_size, int, 0);