Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 337301
b: refs/heads/master
c: 0473c02
h: refs/heads/master
i:
  337299: f04d891
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Oct 26, 2012
1 parent 6efd4d2 commit 7686fd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: ea8690997095a8ba8d9dc22ae7fe75e64f047e38
refs/heads/master: 0473c02a8b560e7a59af4a2d5132ef0ade0f6a33
5 changes: 3 additions & 2 deletions trunk/drivers/staging/comedi/drivers/dt3000.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,6 @@ static const struct dt3k_boardtype dt3k_boardtypes[] = {
},
};

#define this_board ((const struct dt3k_boardtype *)dev->board_ptr)

#define DT3000_SIZE (4*0x1000)

/* dual-ported RAM location definitions */
Expand Down Expand Up @@ -410,6 +408,7 @@ static void dt3k_ai_empty_fifo(struct comedi_device *dev,
static int dt3k_ai_cmdtest(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_cmd *cmd)
{
const struct dt3k_boardtype *this_board = comedi_board(dev);
int err = 0;
int tmp;

Expand Down Expand Up @@ -796,6 +795,7 @@ static struct pci_dev *dt3000_find_pci_dev(struct comedi_device *dev,

static int dt3000_attach(struct comedi_device *dev, struct comedi_devconfig *it)
{
const struct dt3k_boardtype *this_board;
struct dt3k_private *devpriv;
struct pci_dev *pcidev;
struct comedi_subdevice *s;
Expand All @@ -813,6 +813,7 @@ static int dt3000_attach(struct comedi_device *dev, struct comedi_devconfig *it)
if (!pcidev)
return -EIO;
comedi_set_hw_dev(dev, &pcidev->dev);
this_board = comedi_board(dev);

ret = comedi_pci_enable(pcidev, "dt3000");
if (ret < 0)
Expand Down

0 comments on commit 7686fd0

Please sign in to comment.