Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 337074
b: refs/heads/master
c: 04a542d
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Oct 22, 2012
1 parent 0f064ea commit f940651
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 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: b25e09232ca22b9dcebe51078011d18b3aea7c3a
refs/heads/master: 04a542d4f7a32abaf71d50fe3c9d338a0815fadb
16 changes: 1 addition & 15 deletions trunk/drivers/staging/comedi/drivers/serial2002.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ Status: in development
#include <linux/serial.h>
#include <linux/poll.h>

struct serial2002_board {
const char *name;
};

struct serial2002_range_table_t {

/* HACK... */
Expand Down Expand Up @@ -780,12 +776,11 @@ static int serial2002_ei_rinsn(struct comedi_device *dev,
static int serial2002_attach(struct comedi_device *dev,
struct comedi_devconfig *it)
{
const struct serial2002_board *board = comedi_board(dev);
struct comedi_subdevice *s;
int ret;

dev_dbg(dev->class_dev, "serial2002: attach\n");
dev->board_name = board->name;
dev->board_name = dev->driver->driver_name;
if (alloc_private(dev, sizeof(struct serial2002_private)) < 0)
return -ENOMEM;
dev->open = serial_2002_open;
Expand Down Expand Up @@ -860,20 +855,11 @@ static void serial2002_detach(struct comedi_device *dev)
}
}

static const struct serial2002_board serial2002_boards[] = {
{
.name = "serial2002"
},
};

static struct comedi_driver serial2002_driver = {
.driver_name = "serial2002",
.module = THIS_MODULE,
.attach = serial2002_attach,
.detach = serial2002_detach,
.board_name = &serial2002_boards[0].name,
.offset = sizeof(struct serial2002_board),
.num_names = ARRAY_SIZE(serial2002_boards),
};
module_comedi_driver(serial2002_driver);

Expand Down

0 comments on commit f940651

Please sign in to comment.