Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304582
b: refs/heads/master
c: d573d6b
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed May 9, 2012
1 parent adc59e6 commit 42bfddf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 24 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7122b76de9ac87be45e8de1041d81d9ea0bf9e48
refs/heads/master: d573d6bd303d455fe7268c89ceba9288535b59ed
31 changes: 8 additions & 23 deletions trunk/drivers/staging/comedi/drivers/multiq3.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,29 +83,6 @@ Devices: [Quanser Consulting] MultiQ-3 (multiq3)

#define MULTIQ3_TIMEOUT 30

static int multiq3_attach(struct comedi_device *dev,
struct comedi_devconfig *it);
static int multiq3_detach(struct comedi_device *dev);
static struct comedi_driver driver_multiq3 = {
.driver_name = "multiq3",
.module = THIS_MODULE,
.attach = multiq3_attach,
.detach = multiq3_detach,
};

static int __init driver_multiq3_init_module(void)
{
return comedi_driver_register(&driver_multiq3);
}

static void __exit driver_multiq3_cleanup_module(void)
{
comedi_driver_unregister(&driver_multiq3);
}

module_init(driver_multiq3_init_module);
module_exit(driver_multiq3_cleanup_module);

struct multiq3_private {
unsigned int ao_readback[2];
};
Expand Down Expand Up @@ -350,6 +327,14 @@ static int multiq3_detach(struct comedi_device *dev)
return 0;
}

static struct comedi_driver multiq3_driver = {
.driver_name = "multiq3",
.module = THIS_MODULE,
.attach = multiq3_attach,
.detach = multiq3_detach,
};
module_comedi_driver(multiq3_driver);

MODULE_AUTHOR("Comedi http://www.comedi.org");
MODULE_DESCRIPTION("Comedi low-level driver");
MODULE_LICENSE("GPL");

0 comments on commit 42bfddf

Please sign in to comment.