aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/serial/hp4x.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/usb/serial/hp4x.c b/drivers/usb/serial/hp4x.c
index 020f9a15605b..64d55fbd206e 100644
--- a/drivers/usb/serial/hp4x.c
+++ b/drivers/usb/serial/hp4x.c
@@ -2,7 +2,7 @@
2 * HP4x Calculators Serial USB driver 2 * HP4x Calculators Serial USB driver
3 * 3 *
4 * Copyright (C) 2005 Arthur Huillet (ahuillet@users.sf.net) 4 * Copyright (C) 2005 Arthur Huillet (ahuillet@users.sf.net)
5 * Copyright (C) 2001-2004 Greg Kroah-Hartman (greg@kroah.com) 5 * Copyright (C) 2001-2005 Greg Kroah-Hartman (greg@kroah.com)
6 * 6 *
7 * This program is free software; you can redistribute it and/or modify 7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by 8 * it under the terms of the GNU General Public License as published by
@@ -14,17 +14,9 @@
14 14
15#include <linux/config.h> 15#include <linux/config.h>
16#include <linux/kernel.h> 16#include <linux/kernel.h>
17#include <linux/errno.h>
18#include <linux/init.h> 17#include <linux/init.h>
19#include <linux/slab.h>
20#include <linux/tty.h> 18#include <linux/tty.h>
21#include <linux/tty_driver.h>
22#include <linux/tty_flip.h>
23#include <linux/serial.h>
24#include <linux/module.h> 19#include <linux/module.h>
25#include <linux/moduleparam.h>
26#include <linux/spinlock.h>
27#include <asm/uaccess.h>
28#include <linux/usb.h> 20#include <linux/usb.h>
29#include "usb-serial.h" 21#include "usb-serial.h"
30 22
@@ -37,8 +29,6 @@
37#define HP_VENDOR_ID 0x03f0 29#define HP_VENDOR_ID 0x03f0
38#define HP49GP_PRODUCT_ID 0x0121 30#define HP49GP_PRODUCT_ID 0x0121
39 31
40static int debug;
41
42static struct usb_device_id id_table [] = { 32static struct usb_device_id id_table [] = {
43 { USB_DEVICE(HP_VENDOR_ID, HP49GP_PRODUCT_ID) }, 33 { USB_DEVICE(HP_VENDOR_ID, HP49GP_PRODUCT_ID) },
44 { } /* Terminating entry */ 34 { } /* Terminating entry */
@@ -81,14 +71,12 @@ failed_usb_serial_register:
81 return retval; 71 return retval;
82} 72}
83 73
84
85static void __exit hp49gp_exit(void) 74static void __exit hp49gp_exit(void)
86{ 75{
87 usb_deregister(&hp49gp_driver); 76 usb_deregister(&hp49gp_driver);
88 usb_serial_deregister(&hp49gp_device); 77 usb_serial_deregister(&hp49gp_device);
89} 78}
90 79
91
92module_init(hp49gp_init); 80module_init(hp49gp_init);
93module_exit(hp49gp_exit); 81module_exit(hp49gp_exit);
94 82