Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325130
b: refs/heads/master
c: f2bed9b
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Sep 11, 2012
1 parent 987447e commit ca43b12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 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: 034f8734599d87648b50195978f5f871301d2867
refs/heads/master: f2bed9b4cbc6fa34db4e9b788c5f631fb7358ecc
9 changes: 1 addition & 8 deletions trunk/drivers/staging/comedi/drivers/adl_pci9111.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,8 @@ static const struct pci9111_board pci9111_boards[] = {
/* Private data structure */

struct pci9111_private_data {
unsigned long io_range; /* PCI6503 io range */

unsigned long lcr_io_base; /* Local configuration register base
* address */
unsigned long lcr_io_range;

int stop_counter;
int stop_is_none;
Expand Down Expand Up @@ -1088,7 +1085,7 @@ static int pci9111_attach(struct comedi_device *dev,
struct pci9111_private_data *dev_private;
struct pci_dev *pcidev;
struct comedi_subdevice *s;
unsigned long io_base, io_range, lcr_io_base, lcr_io_range;
unsigned long io_base, lcr_io_base;
int ret;
const struct pci9111_board *board;

Expand All @@ -1110,7 +1107,6 @@ static int pci9111_attach(struct comedi_device *dev,
* [PCI_BASE_ADDRESS #1]. */

lcr_io_base = pci_resource_start(pcidev, 1);
lcr_io_range = pci_resource_len(pcidev, 1);

/* Enable PCI device and request regions */
if (comedi_pci_enable(pcidev, PCI9111_DRIVER_NAME) < 0) {
Expand All @@ -1122,14 +1118,11 @@ static int pci9111_attach(struct comedi_device *dev,
/* Read PCI6308 register base address [PCI_BASE_ADDRESS #2]. */

io_base = pci_resource_start(pcidev, 2);
io_range = pci_resource_len(pcidev, 2);

dev->iobase = io_base;
dev->board_name = board->name;
dev_private->io_range = io_range;
dev_private->is_valid = 0;
dev_private->lcr_io_base = lcr_io_base;
dev_private->lcr_io_range = lcr_io_range;

pci9111_reset(dev);

Expand Down

0 comments on commit ca43b12

Please sign in to comment.