Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304514
b: refs/heads/master
c: f3ebaf4
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Apr 30, 2012
1 parent 3a2e65f commit 26c40d7
Show file tree
Hide file tree
Showing 2 changed files with 20 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: 5f01bd51f1f079399f9a3c1951e1be86502f7bbc
refs/heads/master: f3ebaf4b51811feaa94de99e0517fc3a797cc3fb
42 changes: 19 additions & 23 deletions trunk/drivers/staging/comedi/drivers/pcm3730.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,6 @@ Configuration options:
#define PCM3730_DIB 2
#define PCM3730_DIC 3

static int pcm3730_attach(struct comedi_device *dev,
struct comedi_devconfig *it);
static int pcm3730_detach(struct comedi_device *dev);
static struct comedi_driver driver_pcm3730 = {
.driver_name = "pcm3730",
.module = THIS_MODULE,
.attach = pcm3730_attach,
.detach = pcm3730_detach,
};

static int __init driver_pcm3730_init_module(void)
{
return comedi_driver_register(&driver_pcm3730);
}

static void __exit driver_pcm3730_cleanup_module(void)
{
comedi_driver_unregister(&driver_pcm3730);
}

module_init(driver_pcm3730_init_module);
module_exit(driver_pcm3730_cleanup_module);

static int pcm3730_do_insn_bits(struct comedi_device *dev,
struct comedi_subdevice *s,
struct comedi_insn *insn, unsigned int *data)
Expand Down Expand Up @@ -166,6 +143,25 @@ static int pcm3730_detach(struct comedi_device *dev)
return 0;
}

static struct comedi_driver driver_pcm3730 = {
.driver_name = "pcm3730",
.module = THIS_MODULE,
.attach = pcm3730_attach,
.detach = pcm3730_detach,
};

static int __init driver_pcm3730_init_module(void)
{
return comedi_driver_register(&driver_pcm3730);
}
module_init(driver_pcm3730_init_module);

static void __exit driver_pcm3730_cleanup_module(void)
{
comedi_driver_unregister(&driver_pcm3730);
}
module_exit(driver_pcm3730_cleanup_module);

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

0 comments on commit 26c40d7

Please sign in to comment.