Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364041
b: refs/heads/master
c: fa7533b
h: refs/heads/master
i:
  364039: 314deac
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Apr 11, 2013
1 parent 5003d9f commit d631a8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 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: d7849efa932cc1799b51542c1b1975ff799e9fe0
refs/heads/master: fa7533b01c0aa20430e6c1d561bbc4dcef7bfe56
23 changes: 3 additions & 20 deletions trunk/drivers/staging/comedi/drivers/amplc_pc263.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,20 +166,6 @@ static struct pci_dev *pc263_find_pci_dev(struct comedi_device *dev,
bus, slot);
return NULL;
}
/*
* This function checks and requests an I/O region, reporting an error
* if there is a conflict.
*/
static int pc263_request_region(struct comedi_device *dev, unsigned long from,
unsigned long extent)
{
if (!from || !request_region(from, extent, PC263_DRIVER_NAME)) {
dev_err(dev->class_dev, "I/O port conflict (%#lx,%lu)!\n",
from, extent);
return -EIO;
}
return 0;
}

static int pc263_do_insn_bits(struct comedi_device *dev,
struct comedi_subdevice *s,
Expand Down Expand Up @@ -268,15 +254,12 @@ static int pc263_attach(struct comedi_device *dev, struct comedi_devconfig *it)
const struct pc263_board *thisboard = comedi_board(dev);
int ret;

dev_info(dev->class_dev, PC263_DRIVER_NAME ": attach\n");

/* Process options and reserve resources according to bus type. */
if (is_isa_board(thisboard)) {
unsigned long iobase = it->options[0];
ret = pc263_request_region(dev, iobase, PC263_IO_SIZE);
if (ret < 0)
ret = comedi_request_region(dev, it->options[0], PC263_IO_SIZE);
if (ret)
return ret;
return pc263_common_attach(dev, iobase);
return pc263_common_attach(dev, dev->iobase);
} else if (is_pci_board(thisboard)) {
struct pci_dev *pci_dev;

Expand Down

0 comments on commit d631a8b

Please sign in to comment.