Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 337076
b: refs/heads/master
c: 43fc365
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Oct 22, 2012
1 parent 5e51c80 commit ace7841
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 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: 16339125416f9d41f24f4ea1e10819ccdb3c8937
refs/heads/master: 43fc365f2418b995aef11ca1281399c981448718
19 changes: 1 addition & 18 deletions trunk/drivers/staging/comedi/drivers/pcmda12.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,6 @@ Configuration Options:
#define MSB_PORT(chan) (LSB_PORT(chan)+1)
#define BITS 12

/*
* Bords
*/
struct pcmda12_board {
const char *name;
};

/* note these have no effect and are merely here for reference..
these are configured by jumpering the board! */
static const struct comedi_lrange pcmda12_ranges = {
Expand Down Expand Up @@ -162,7 +155,6 @@ static int ao_rinsn(struct comedi_device *dev, struct comedi_subdevice *s,
static int pcmda12_attach(struct comedi_device *dev,
struct comedi_devconfig *it)
{
const struct pcmda12_board *board = comedi_board(dev);
struct comedi_subdevice *s;
unsigned long iobase;
int ret;
Expand All @@ -178,7 +170,7 @@ static int pcmda12_attach(struct comedi_device *dev,
}
dev->iobase = iobase;

dev->board_name = board->name;
dev->board_name = dev->driver->driver_name;

/*
* Allocate the private structure area. alloc_private() is a
Expand Down Expand Up @@ -218,20 +210,11 @@ static void pcmda12_detach(struct comedi_device *dev)
release_region(dev->iobase, IOSIZE);
}

static const struct pcmda12_board pcmda12_boards[] = {
{
.name = "pcmda12",
},
};

static struct comedi_driver pcmda12_driver = {
.driver_name = "pcmda12",
.module = THIS_MODULE,
.attach = pcmda12_attach,
.detach = pcmda12_detach,
.board_name = &pcmda12_boards[0].name,
.offset = sizeof(struct pcmda12_board),
.num_names = ARRAY_SIZE(pcmda12_boards),
};
module_comedi_driver(pcmda12_driver);

Expand Down

0 comments on commit ace7841

Please sign in to comment.