Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317078
b: refs/heads/master
c: 609dd34
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Jun 5, 2012
1 parent 7eddc16 commit 993d52f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 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: ad401db6684bef91aca6304e640d63c9c858de2b
refs/heads/master: 609dd342fb7eab79d42350455c2d86238c7dc15f
8 changes: 2 additions & 6 deletions trunk/drivers/staging/comedi/drivers/serial2002.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ struct serial2002_board {
const char *name;
};

/*
* Useful for shorthand access to the particular board structure
*/
#define thisboard ((const struct serial2002_board *)dev->board_ptr)

struct serial2002_range_table_t {

/* HACK... */
Expand Down Expand Up @@ -783,10 +778,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;

dev_dbg(dev->hw_dev, "comedi%d: attached\n", dev->minor);
dev->board_name = thisboard->name;
dev->board_name = board->name;
if (alloc_private(dev, sizeof(struct serial2002_private)) < 0)
return -ENOMEM;
dev->open = serial_2002_open;
Expand Down

0 comments on commit 993d52f

Please sign in to comment.