Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363413
b: refs/heads/master
c: bfcded4
h: refs/heads/master
i:
  363411: da05d6a
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Mar 11, 2013
1 parent a0e6151 commit 54c8329
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 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: dbae4575661da840353f12dd76499ad587c92519
refs/heads/master: bfcded4656c09a60c836c6be566ae501adf15a50
24 changes: 0 additions & 24 deletions trunk/drivers/staging/comedi/drivers/addi-data/addi_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,23 +84,6 @@ static int i_ADDI_Reset(struct comedi_device *dev)
return 0;
}

static const void *addi_find_boardinfo(struct comedi_device *dev,
struct pci_dev *pcidev)
{
const void *p = dev->driver->board_name;
const struct addi_board *this_board;
int i;

for (i = 0; i < dev->driver->num_names; i++) {
this_board = p;
if (this_board->i_VendorId == pcidev->vendor &&
this_board->i_DeviceId == pcidev->device)
return this_board;
p += dev->driver->offset;
}
return NULL;
}

static int addi_auto_attach(struct comedi_device *dev,
unsigned long context_unused)
{
Expand All @@ -111,13 +94,6 @@ static int addi_auto_attach(struct comedi_device *dev,
int ret, n_subdevices;
unsigned int dw_Dummy;

if (!this_board) {
/* The driver did not set the board_ptr, try finding it. */
this_board = addi_find_boardinfo(dev, pcidev);
if (!this_board)
return -ENODEV;
dev->board_ptr = this_board;
}
dev->board_name = this_board->pc_DriverName;

devpriv = kzalloc(sizeof(*devpriv), GFP_KERNEL);
Expand Down

0 comments on commit 54c8329

Please sign in to comment.