[media] az6007: Simplify the code by removing an uneeded function
[deliverable/linux.git] / drivers / media / dvb / dvb-usb / az6007.c
CommitLineData
25c16466
MCC
1/*
2 * Driver for AzureWave 6007 DVB-C/T USB2.0 and clones
3 *
4 * Copyright (c) Henry Wang <Henry.wang@AzureWave.com>
5 *
6 * This driver was made publicly available by Terratec, at:
7 * http://linux.terratec.de/files/TERRATEC_H7/20110323_TERRATEC_H7_Linux.tar.gz
8 * The original driver's license is GPL, as declared with MODULE_LICENSE()
9 *
10 * Driver modifiyed by Mauro Carvalho Chehab <mchehab@redhat.com> in order
11 * to work with upstream drxk driver, and to fix some bugs.
12 *
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation under version 2 of the License.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
71d67634
MCC
21 */
22
71d67634
MCC
23#include "drxk.h"
24#include "mt2063.h"
25#include "dvb_ca_en50221.h"
70fa444d
MCC
26
27#define DVB_USB_LOG_PREFIX "az6007"
c108a5a0 28#include "dvb-usb.h"
71d67634
MCC
29
30/* debug */
31int dvb_usb_az6007_debug;
93b32126
MCC
32module_param_named(debug, dvb_usb_az6007_debug, int, 0644);
33MODULE_PARM_DESC(debug, "set debugging level (1=info,xfer=2,rc=4 (or-able))."
34 DVB_USB_DEBUG_STATUS);
71d67634 35
70fa444d
MCC
36#define deb_info(args...) dprintk(dvb_usb_az6007_debug, 0x01, args)
37#define deb_xfer(args...) dprintk(dvb_usb_az6007_debug, 0x02, args)
38#define deb_rc(args...) dprintk(dvb_usb_az6007_debug, 0x04, args)
39#define deb_fe(args...) dprintk(dvb_usb_az6007_debug, 0x08, args)
40
71d67634
MCC
41DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr);
42
3aecf2c5
MCC
43/* Known requests (Cypress FX2 firmware + az6007 "private" ones*/
44
45#define FX2_OED 0xb5
46#define AZ6007_READ_DATA 0xb7
47#define AZ6007_I2C_RD 0xb9
48#define AZ6007_POWER 0xbc
49#define AZ6007_I2C_WR 0xbd
50#define FX2_SCON1 0xc0
51#define AZ6007_TS_THROUGH 0xc7
52#define AZ6007_READ_IR 0xc5
53
71d67634 54struct az6007_device_state {
93b32126
MCC
55 struct dvb_ca_en50221 ca;
56 struct mutex ca_mutex;
57 u8 power_state;
71d67634 58
6da34706 59 /* Due to DRX-K - probably need changes */
93b32126
MCC
60 int (*gate_ctrl) (struct dvb_frontend *, int);
61 struct semaphore pll_mutex;
6da34706 62 bool dont_attach_fe1;
71d67634
MCC
63};
64
93b32126 65static struct drxk_config terratec_h7_drxk = {
6da34706
MCC
66 .adr = 0x29,
67 .single_master = 1,
d20a7f72 68 .no_i2c_bridge = 0,
da989e0b 69 .max_size = 64,
81091144
MCC
70 .microcode_name = "dvb-usb-terratec-h7-drxk.fw",
71 .parallel_ts = 1,
71d67634
MCC
72};
73
6da34706
MCC
74static int drxk_gate_ctrl(struct dvb_frontend *fe, int enable)
75{
76 struct dvb_usb_adapter *adap = fe->sec_priv;
caa1a700 77 struct az6007_device_state *st;
f2ba9e5d 78 int status = 0;
6da34706 79
f2ba9e5d 80 deb_info("%s: %s\n", __func__, enable ? "enable" : "disable");
caa1a700
MCC
81
82 if (!adap)
83 return -EINVAL;
84
85 st = adap->priv;
86
87 if (!st)
6da34706
MCC
88 return -EINVAL;
89
90 if (enable) {
2212501f 91#if 0
6da34706 92 down(&st->pll_mutex);
2212501f 93#endif
6da34706
MCC
94 status = st->gate_ctrl(fe, 1);
95 } else {
2212501f 96#if 0
6da34706 97 status = st->gate_ctrl(fe, 0);
2212501f 98#endif
6da34706
MCC
99 up(&st->pll_mutex);
100 }
101 return status;
102}
103
93b32126 104static struct mt2063_config az6007_mt2063_config = {
caa1a700 105 .tuner_address = 0x60,
71d67634
MCC
106 .refclock = 36125000,
107};
108
109/* check for mutex FIXME */
3af2f4f1 110static int az6007_read(struct usb_device *udev, u8 req, u16 value,
93b32126 111 u16 index, u8 *b, int blen)
71d67634
MCC
112{
113 int ret = -1;
114
3af2f4f1
MCC
115 ret = usb_control_msg(udev,
116 usb_rcvctrlpipe(udev, 0),
93b32126
MCC
117 req,
118 USB_TYPE_VENDOR | USB_DIR_IN,
119 value, index, b, blen, 5000);
71d67634
MCC
120
121 if (ret < 0) {
122 warn("usb in operation failed. (%d)", ret);
caa1a700
MCC
123 return -EIO;
124 }
71d67634 125
93b32126
MCC
126 deb_xfer("in: req. %02x, val: %04x, ind: %04x, buffer: ", req, value,
127 index);
128 debug_dump(b, blen, deb_xfer);
71d67634
MCC
129
130 return ret;
131}
132
3af2f4f1 133static int az6007_write(struct usb_device *udev, u8 req, u16 value,
71d67634
MCC
134 u16 index, u8 *b, int blen)
135{
136 int ret;
137
93b32126
MCC
138 deb_xfer("out: req. %02x, val: %04x, ind: %04x, buffer: ", req, value,
139 index);
140 debug_dump(b, blen, deb_xfer);
71d67634 141
35753580 142 if (blen > 64) {
da989e0b
MCC
143 err("az6007: tried to write %d bytes, but I2C max size is 64 bytes\n",
144 blen);
35753580 145 return -EOPNOTSUPP;
71d67634 146 }
35753580 147
3af2f4f1
MCC
148 ret = usb_control_msg(udev,
149 usb_sndctrlpipe(udev, 0),
93b32126
MCC
150 req,
151 USB_TYPE_VENDOR | USB_DIR_OUT,
152 value, index, b, blen, 5000);
153 if (ret != blen) {
f2ba9e5d 154 err("usb out operation failed. (%d)", ret);
35753580 155 return -EIO;
71d67634 156 }
6da34706 157
71d67634
MCC
158 return 0;
159}
160
161static int az6007_streaming_ctrl(struct dvb_usb_adapter *adap, int onoff)
162{
163 return 0;
164}
165
166/* keys for the enclosed remote control */
93b32126
MCC
167static struct rc_map_table rc_map_az6007_table[] = {
168 {0x0001, KEY_1},
169 {0x0002, KEY_2},
71d67634
MCC
170};
171
172/* remote control stuff (does not work with my box) */
93b32126 173static int az6007_rc_query(struct dvb_usb_device *d, u32 * event, int *state)
71d67634
MCC
174{
175 return 0;
176#if 0
177 u8 key[10];
178 int i;
179
93b32126 180 /* remove the following return to enabled remote querying */
71d67634 181
3aecf2c5 182 az6007_read(d->udev, AZ6007_READ_IR, 0, 0, key, 10);
71d67634 183
93b32126 184 deb_rc("remote query key: %x %d\n", key[1], key[1]);
71d67634
MCC
185
186 if (key[1] == 0x44) {
187 *state = REMOTE_NO_KEY_PRESSED;
188 return 0;
189 }
190
191 for (i = 0; i < ARRAY_SIZE(az6007_rc_keys); i++)
192 if (az6007_rc_keys[i].custom == key[1]) {
193 *state = REMOTE_KEY_PRESSED;
194 *event = az6007_rc_keys[i].event;
195 break;
196 }
197 return 0;
198#endif
199}
200
3aecf2c5 201#if 0
71d67634
MCC
202int az6007_power_ctrl(struct dvb_usb_device *d, int onoff)
203{
204 u8 v = onoff;
3aecf2c5 205 return az6007_write(d->udev, AZ6007_POWER, v , 3, NULL, 1);
71d67634 206}
3aecf2c5 207#endif
71d67634 208
93b32126 209static int az6007_read_mac_addr(struct dvb_usb_device *d, u8 mac[6])
71d67634 210{
3aecf2c5
MCC
211 int ret;
212 ret = az6007_read(d->udev, AZ6007_READ_DATA, 6, 0, mac, 6);
71d67634 213
3aecf2c5
MCC
214 if (ret > 0)
215 deb_info("%s: mac is %02x:%02x:%02x:%02x:%02x:%02x\n",
216 __func__, mac[0], mac[1], mac[2],
217 mac[3], mac[4], mac[5]);
218
219 return ret;
220}
81091144 221
71d67634
MCC
222static int az6007_frontend_poweron(struct dvb_usb_adapter *adap)
223{
3aecf2c5
MCC
224 int ret;
225 struct usb_device *udev = adap->dev->udev;
71d67634 226
3aecf2c5 227 deb_info("%s: adap=%p adap->dev=%p\n", __func__, adap, adap->dev);
71d67634 228
3aecf2c5
MCC
229 ret = az6007_write(udev, AZ6007_POWER, 0, 2, NULL, 0);
230 if (ret < 0)
231 goto error;
81091144 232 msleep(150);
3aecf2c5
MCC
233 ret = az6007_write(udev, AZ6007_POWER, 1, 4, NULL, 0);
234 if (ret < 0)
235 goto error;
81091144 236 msleep(100);
3aecf2c5
MCC
237 ret = az6007_write(udev, AZ6007_POWER, 1, 3, NULL, 0);
238 if (ret < 0)
239 goto error;
81091144 240 msleep(100);
3aecf2c5
MCC
241 ret = az6007_write(udev, AZ6007_POWER, 1, 4, NULL, 0);
242 if (ret < 0)
243 goto error;
81091144 244 msleep(100);
3aecf2c5
MCC
245 ret = az6007_write(udev, FX2_SCON1, 0, 3, NULL, 0);
246 if (ret < 0)
247 goto error;
81091144 248 msleep (10);
3aecf2c5
MCC
249 ret = az6007_write(udev, FX2_SCON1, 1, 3, NULL, 0);
250 if (ret < 0)
251 goto error;
81091144 252 msleep (10);
3aecf2c5 253 ret = az6007_write(udev, AZ6007_POWER, 0, 0, NULL, 0);
71d67634 254
3aecf2c5
MCC
255error:
256 if (ret < 0)
257 err("%s failed with error %d", __func__, ret);
caa1a700 258
3aecf2c5 259 return ret;
71d67634
MCC
260}
261
71d67634
MCC
262static int az6007_led_on_off(struct usb_interface *intf, int onoff)
263{
3aecf2c5
MCC
264 struct usb_device *udev = interface_to_usbdev(intf);
265 int ret;
71d67634 266
3aecf2c5
MCC
267 /* TS through */
268 ret = az6007_write(udev, AZ6007_POWER, onoff, 0, NULL, 0);
269 if (ret < 0)
270 err("%s failed with error %d", __func__, ret);
71d67634
MCC
271
272 return ret;
273}
274
71d67634
MCC
275static int az6007_frontend_attach(struct dvb_usb_adapter *adap)
276{
6da34706
MCC
277 struct az6007_device_state *st = adap->priv;
278
279 int result;
280
caa1a700
MCC
281 BUG_ON(!st);
282
71d67634 283 az6007_frontend_poweron(adap);
71d67634 284
f2ba9e5d 285 info("az6007: attaching demod drxk");
6da34706
MCC
286 adap->fe = dvb_attach(drxk_attach, &terratec_h7_drxk,
287 &adap->dev->i2c_adap, &adap->fe2);
288 if (!adap->fe) {
289 result = -EINVAL;
290 goto out_free;
71d67634 291 }
6da34706 292
f2ba9e5d 293 deb_info("Setting hacks\n");
caa1a700 294
6da34706
MCC
295 /* FIXME: do we need a pll semaphore? */
296 adap->fe->sec_priv = adap;
297 sema_init(&st->pll_mutex, 1);
298 st->gate_ctrl = adap->fe->ops.i2c_gate_ctrl;
299 adap->fe->ops.i2c_gate_ctrl = drxk_gate_ctrl;
300 adap->fe2->id = 1;
301
f2ba9e5d 302 info("az6007: attaching tuner mt2063");
6da34706
MCC
303 /* Attach mt2063 to DVB-C frontend */
304 if (adap->fe->ops.i2c_gate_ctrl)
305 adap->fe->ops.i2c_gate_ctrl(adap->fe, 1);
306 if (!dvb_attach(mt2063_attach, adap->fe, &az6007_mt2063_config,
307 &adap->dev->i2c_adap)) {
308 result = -EINVAL;
309
310 goto out_free;
71d67634 311 }
6da34706
MCC
312 if (adap->fe->ops.i2c_gate_ctrl)
313 adap->fe->ops.i2c_gate_ctrl(adap->fe, 0);
314
315 /* Hack - needed due to drxk */
316 adap->fe2->tuner_priv = adap->fe->tuner_priv;
317 memcpy(&adap->fe2->ops.tuner_ops,
93b32126 318 &adap->fe->ops.tuner_ops, sizeof(adap->fe->ops.tuner_ops));
da989e0b 319
71d67634 320 return 0;
6da34706
MCC
321
322out_free:
323 if (adap->fe)
324 dvb_frontend_detach(adap->fe);
325 adap->fe = NULL;
326 adap->fe2 = NULL;
327
328 return result;
71d67634
MCC
329}
330
81091144
MCC
331int az6007_power_ctrl(struct dvb_usb_device *d, int onoff)
332{
333 if (!onoff)
334 return 0;
335
336
337 info("Sending poweron sequence");
338
3aecf2c5 339 az6007_write(d->udev, AZ6007_TS_THROUGH, 0, 0, NULL, 0);
81091144
MCC
340
341#if 0
342 // Seems to be a poweroff sequence
3af2f4f1
MCC
343 az6007_write(d->udev, 0xbc, 1, 3, NULL, 0);
344 az6007_write(d->udev, 0xbc, 1, 4, NULL, 0);
345 az6007_write(d->udev, 0xc0, 0, 3, NULL, 0);
346 az6007_write(d->udev, 0xc0, 1, 3, NULL, 0);
347 az6007_write(d->udev, 0xbc, 0, 1, NULL, 0);
81091144
MCC
348#endif
349 return 0;
350}
351
71d67634
MCC
352static struct dvb_usb_device_properties az6007_properties;
353
93b32126 354static void az6007_usb_disconnect(struct usb_interface *intf)
71d67634 355{
93b32126 356 dvb_usb_device_exit(intf);
71d67634
MCC
357}
358
359/* I2C */
93b32126
MCC
360static int az6007_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[],
361 int num)
71d67634
MCC
362{
363 struct dvb_usb_device *d = i2c_get_adapdata(adap);
caa1a700
MCC
364 int i, j, len;
365 int ret = 0;
71d67634
MCC
366 u16 index;
367 u16 value;
368 int length;
caa1a700 369 u8 req, addr;
71d67634 370 u8 data[512];
6da34706 371
71d67634
MCC
372 if (mutex_lock_interruptible(&d->i2c_mutex) < 0)
373 return -EAGAIN;
71d67634 374
caa1a700
MCC
375 for (i = 0; i < num; i++) {
376 addr = msgs[i].addr << 1;
caa1a700
MCC
377 if (((i + 1) < num)
378 && (msgs[i].len == 1)
379 && (!msgs[i].flags & I2C_M_RD)
380 && (msgs[i + 1].flags & I2C_M_RD)
381 && (msgs[i].addr == msgs[i + 1].addr)) {
382 /*
383 * A write + read xfer for the same address, where
384 * the first xfer has just 1 byte length.
385 * Need to join both into one operation
386 */
d20a7f72
MCC
387 if (dvb_usb_az6007_debug & 2)
388 printk(KERN_DEBUG
389 "az6007 I2C xfer write+read addr=0x%x len=%d/%d: ",
390 addr, msgs[i].len, msgs[i + 1].len);
3aecf2c5 391 req = AZ6007_I2C_RD;
d20a7f72
MCC
392 index = msgs[i].buf[0];
393 value = addr | (1 << 8);
caa1a700
MCC
394 length = 6 + msgs[i + 1].len;
395 len = msgs[i + 1].len;
3af2f4f1 396 ret = az6007_read(d->udev, req, value, index, data,
93b32126 397 length);
caa1a700
MCC
398 if (ret >= len) {
399 for (j = 0; j < len; j++) {
400 msgs[i + 1].buf[j] = data[j + 5];
d20a7f72
MCC
401 if (dvb_usb_az6007_debug & 2)
402 printk(KERN_CONT
403 "0x%02x ",
404 msgs[i + 1].buf[j]);
caa1a700
MCC
405 }
406 } else
407 ret = -EIO;
408 i++;
409 } else if (!(msgs[i].flags & I2C_M_RD)) {
410 /* write bytes */
d20a7f72
MCC
411 if (dvb_usb_az6007_debug & 2)
412 printk(KERN_DEBUG
413 "az6007 I2C xfer write addr=0x%x len=%d: ",
414 addr, msgs[i].len);
3aecf2c5 415 req = AZ6007_I2C_WR;
caa1a700
MCC
416 index = msgs[i].buf[0];
417 value = addr | (1 << 8);
418 length = msgs[i].len - 1;
419 len = msgs[i].len - 1;
d20a7f72 420 if (dvb_usb_az6007_debug & 2)
93b32126
MCC
421 printk(KERN_CONT "(0x%02x) ", msgs[i].buf[0]);
422 for (j = 0; j < len; j++) {
caa1a700 423 data[j] = msgs[i].buf[j + 1];
d20a7f72 424 if (dvb_usb_az6007_debug & 2)
93b32126 425 printk(KERN_CONT "0x%02x ", data[j]);
71d67634 426 }
3af2f4f1 427 ret = az6007_write(d->udev, req, value, index, data,
93b32126 428 length);
caa1a700
MCC
429 } else {
430 /* read bytes */
d20a7f72
MCC
431 if (dvb_usb_az6007_debug & 2)
432 printk(KERN_DEBUG
433 "az6007 I2C xfer read addr=0x%x len=%d: ",
434 addr, msgs[i].len);
3aecf2c5 435 req = AZ6007_I2C_RD;
caa1a700
MCC
436 index = msgs[i].buf[0];
437 value = addr;
438 length = msgs[i].len + 6;
439 len = msgs[i].len;
3af2f4f1 440 ret = az6007_read(d->udev, req, value, index, data,
93b32126
MCC
441 length);
442 for (j = 0; j < len; j++) {
caa1a700 443 msgs[i].buf[j] = data[j + 5];
d20a7f72
MCC
444 if (dvb_usb_az6007_debug & 2)
445 printk(KERN_CONT
446 "0x%02x ", data[j + 5]);
71d67634 447 }
71d67634 448 }
d20a7f72
MCC
449 if (dvb_usb_az6007_debug & 2)
450 printk(KERN_CONT "\n");
caa1a700
MCC
451 if (ret < 0)
452 goto err;
71d67634 453 }
caa1a700 454err:
71d67634 455 mutex_unlock(&d->i2c_mutex);
caa1a700
MCC
456
457 if (ret < 0) {
f2ba9e5d 458 info("%s ERROR: %i", __func__, ret);
caa1a700
MCC
459 return ret;
460 }
461 return num;
71d67634
MCC
462}
463
71d67634
MCC
464static u32 az6007_i2c_func(struct i2c_adapter *adapter)
465{
466 return I2C_FUNC_I2C;
467}
468
469static struct i2c_algorithm az6007_i2c_algo = {
93b32126 470 .master_xfer = az6007_i2c_xfer,
71d67634 471 .functionality = az6007_i2c_func,
71d67634
MCC
472};
473
93b32126
MCC
474int az6007_identify_state(struct usb_device *udev,
475 struct dvb_usb_device_properties *props,
476 struct dvb_usb_device_description **desc, int *cold)
71d67634 477{
3aecf2c5
MCC
478 int ret;
479 u8 mac[6];
71d67634 480
3aecf2c5
MCC
481 /* Try to read the mac address */
482 ret = az6007_read(udev, AZ6007_READ_DATA, 6, 0, mac, 6);
483 if (ret == 6)
484 *cold = 0;
485 else
486 *cold = 1;
71d67634 487
3aecf2c5 488 deb_info("Device is on %s state\n", *cold? "warm" : "cold");
71d67634
MCC
489 return 0;
490}
491
492static int az6007_usb_probe(struct usb_interface *intf,
93b32126 493 const struct usb_device_id *id)
71d67634 494{
6da34706
MCC
495 az6007_led_on_off(intf, 0);
496
71d67634 497 return dvb_usb_device_init(intf, &az6007_properties,
6da34706 498 THIS_MODULE, NULL, adapter_nr);
71d67634
MCC
499}
500
93b32126
MCC
501static struct usb_device_id az6007_usb_table[] = {
502 {USB_DEVICE(USB_VID_AZUREWAVE, USB_PID_AZUREWAVE_6007)},
503 {USB_DEVICE(USB_VID_TERRATEC, USB_PID_TERRATEC_H7)},
504 {0},
71d67634
MCC
505};
506
507MODULE_DEVICE_TABLE(usb, az6007_usb_table);
508
509static struct dvb_usb_device_properties az6007_properties = {
510 .caps = DVB_USB_IS_AN_I2C_ADAPTER,
511 .usb_ctrl = CYPRESS_FX2,
81091144 512 .firmware = "dvb-usb-terratec-h7-az6007.fw",
71d67634
MCC
513 .no_reconnect = 1,
514
71d67634
MCC
515 .identify_state = az6007_identify_state,
516 .num_adapters = 1,
517 .adapter = {
518 {
71d67634
MCC
519 .streaming_ctrl = az6007_streaming_ctrl,
520 .frontend_attach = az6007_frontend_attach,
521
522 /* parameter for the MPEG2-data transfer */
523 .stream = {
524 .type = USB_BULK,
525 .count = 10,
526 .endpoint = 0x02,
527 .u = {
528 .bulk = {
529 .buffersize = 4096,
530 }
531 }
532 },
caa1a700 533 .size_of_priv = sizeof(struct az6007_device_state),
71d67634
MCC
534 }
535 },
81091144 536 .power_ctrl = az6007_power_ctrl,
71d67634
MCC
537 .read_mac_address = az6007_read_mac_addr,
538
6da34706
MCC
539 .rc.legacy = {
540 .rc_map_table = rc_map_az6007_table,
541 .rc_map_size = ARRAY_SIZE(rc_map_az6007_table),
542 .rc_interval = 400,
543 .rc_query = az6007_rc_query,
544 },
71d67634
MCC
545 .i2c_algo = &az6007_i2c_algo,
546
547 .num_device_descs = 2,
548 .devices = {
549 { .name = "AzureWave DTV StarBox DVB-T/C USB2.0 (az6007)",
550 .cold_ids = { &az6007_usb_table[0], NULL },
551 .warm_ids = { NULL },
552 },
553 { .name = "TerraTec DTV StarBox DVB-T/C USB2.0 (az6007)",
554 .cold_ids = { &az6007_usb_table[1], NULL },
555 .warm_ids = { NULL },
556 },
6da34706 557 { NULL },
71d67634
MCC
558 }
559};
6da34706 560
71d67634
MCC
561/* usb specific object needed to register this driver with the usb subsystem */
562static struct usb_driver az6007_usb_driver = {
563 .name = "dvb_usb_az6007",
93b32126 564 .probe = az6007_usb_probe,
71d67634 565 .disconnect = dvb_usb_device_exit,
93b32126
MCC
566 /* .disconnect = az6007_usb_disconnect, */
567 .id_table = az6007_usb_table,
71d67634
MCC
568};
569
570/* module stuff */
571static int __init az6007_usb_module_init(void)
572{
573 int result;
f2ba9e5d 574 deb_info("az6007 usb module init\n");
93b32126
MCC
575
576 result = usb_register(&az6007_usb_driver);
577 if (result) {
578 err("usb_register failed. (%d)", result);
71d67634
MCC
579 return result;
580 }
581
582 return 0;
583}
584
585static void __exit az6007_usb_module_exit(void)
586{
587 /* deregister this driver from the USB subsystem */
f2ba9e5d 588 deb_info("az6007 usb module exit\n");
71d67634
MCC
589 usb_deregister(&az6007_usb_driver);
590}
591
592module_init(az6007_usb_module_init);
593module_exit(az6007_usb_module_exit);
594
595MODULE_AUTHOR("Henry Wang <Henry.wang@AzureWave.com>");
596MODULE_DESCRIPTION("Driver for AzureWave 6007 DVB-C/T USB2.0 and clones");
35753580 597MODULE_VERSION("1.1");
71d67634 598MODULE_LICENSE("GPL");
This page took 0.1103 seconds and 5 git commands to generate.