[PATCH] UHCI: Improve FSBR-off timing
[deliverable/linux.git] / drivers / usb / serial / airprime.c
CommitLineData
3b86b202
GK
1/*
2 * AirPrime CDMA Wireless Serial USB driver
3 *
4 * Copyright (C) 2005 Greg Kroah-Hartman <gregkh@suse.de>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License version
8 * 2 as published by the Free Software Foundation.
9 */
10
11#include <linux/kernel.h>
12#include <linux/init.h>
13#include <linux/tty.h>
14#include <linux/module.h>
15#include <linux/usb.h>
16#include "usb-serial.h"
17
18static struct usb_device_id id_table [] = {
3a8c1e29
DH
19 { USB_DEVICE(0xf3d, 0x0112) }, /* AirPrime CDMA Wireless PC Card */
20 { USB_DEVICE(0x1410, 0x1110) }, /* Novatel Wireless Merlin CDMA */
b68f7de0 21 { USB_DEVICE(0x1199, 0x0112) }, /* Sierra Wireless Aircard 580 */
b10cee9d 22 { USB_DEVICE(0x1199, 0x0218) }, /* Sierra Wireless MC5720 */
3b86b202
GK
23 { },
24};
25MODULE_DEVICE_TABLE(usb, id_table);
26
27static struct usb_driver airprime_driver = {
3b86b202
GK
28 .name = "airprime",
29 .probe = usb_serial_probe,
30 .disconnect = usb_serial_disconnect,
31 .id_table = id_table,
ba9dc657 32 .no_dynamic_id = 1,
3b86b202
GK
33};
34
ea65370d 35static struct usb_serial_driver airprime_device = {
18fcac35
GKH
36 .driver = {
37 .owner = THIS_MODULE,
269bda1c 38 .name = "airprime",
18fcac35 39 },
3b86b202
GK
40 .id_table = id_table,
41 .num_interrupt_in = NUM_DONT_CARE,
42 .num_bulk_in = NUM_DONT_CARE,
43 .num_bulk_out = NUM_DONT_CARE,
44 .num_ports = 1,
45};
46
47static int __init airprime_init(void)
48{
49 int retval;
50
51 retval = usb_serial_register(&airprime_device);
52 if (retval)
53 return retval;
54 retval = usb_register(&airprime_driver);
55 if (retval)
56 usb_serial_deregister(&airprime_device);
57 return retval;
58}
59
60static void __exit airprime_exit(void)
61{
62 usb_deregister(&airprime_driver);
63 usb_serial_deregister(&airprime_device);
64}
65
66module_init(airprime_init);
67module_exit(airprime_exit);
68MODULE_LICENSE("GPL");
This page took 0.1535 seconds and 5 git commands to generate.