Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363398
b: refs/heads/master
c: 7159888
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Mar 11, 2013
1 parent 733bc2e commit 3b98796
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: e69e860ef2f05df0f8f31854f8b353b9a52e85e7
refs/heads/master: 715988871f82a00b8bb36b7f2fdbd865c09b170e
6 changes: 2 additions & 4 deletions trunk/drivers/staging/comedi/drivers/ni_pcidio.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,6 @@ static const struct nidio_board nidio_boards[] = {
},
};

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

struct nidio96_private {
struct mite_struct *mite;
int boardtype;
Expand Down Expand Up @@ -1112,7 +1110,7 @@ static int nidio_auto_attach(struct comedi_device *dev,
if (!board)
return -ENODEV;
dev->board_ptr = board;
dev->board_name = this_board->name;
dev->board_name = board->name;

devpriv = kzalloc(sizeof(*devpriv), GFP_KERNEL);
if (!devpriv)
Expand All @@ -1136,7 +1134,7 @@ static int nidio_auto_attach(struct comedi_device *dev,
return -ENOMEM;

irq = mite_irq(devpriv->mite);
if (this_board->uses_firmware) {
if (board->uses_firmware) {
ret = pci_6534_upload_firmware(dev);
if (ret < 0)
return ret;
Expand Down

0 comments on commit 3b98796

Please sign in to comment.