Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304543
b: refs/heads/master
c: 2d2111e
h: refs/heads/master
i:
  304541: d728e77
  304539: 222a6e7
  304535: a3fc5e4
  304527: 31e7529
  304511: c4cdcae
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed May 2, 2012
1 parent 9f69b85 commit c008f6f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 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: d210267741fb2a8b6d741d9040703683a39087f4
refs/heads/master: 2d2111ea2cf25cc60f7027130ceb34af2d03745d
6 changes: 3 additions & 3 deletions trunk/drivers/staging/comedi/drivers/pcmda12.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,10 @@ static int pcmda12_attach(struct comedi_device *dev,

iobase = it->options[0];
printk(KERN_INFO
"comedi%d: %s: io: %lx %s ", dev->minor, driver.driver_name,
"comedi%d: %s: io: %lx %s ", dev->minor, dev->driver->driver_name,
iobase, it->options[1] ? "simultaneous xfer mode enabled" : "");

if (!request_region(iobase, IOSIZE, driver.driver_name)) {
if (!request_region(iobase, IOSIZE, dev->driver->driver_name)) {
printk("I/O port conflict\n");
return -EIO;
}
Expand Down Expand Up @@ -230,7 +230,7 @@ static int pcmda12_attach(struct comedi_device *dev,
static int pcmda12_detach(struct comedi_device *dev)
{
printk(KERN_INFO
"comedi%d: %s: remove\n", dev->minor, driver.driver_name);
"comedi%d: %s: remove\n", dev->minor, dev->driver->driver_name);
if (dev->iobase)
release_region(dev->iobase, IOSIZE);
return 0;
Expand Down
7 changes: 4 additions & 3 deletions trunk/drivers/staging/comedi/drivers/pcmmio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1022,13 +1022,13 @@ static int pcmmio_attach(struct comedi_device *dev, struct comedi_devconfig *it)
irq[0] = it->options[1];

printk(KERN_INFO "comedi%d: %s: io: %lx attaching...\n", dev->minor,
driver.driver_name, iobase);
dev->driver->driver_name, iobase);

dev->iobase = iobase;

if (!iobase || !request_region(iobase,
thisboard->total_iosize,
driver.driver_name)) {
dev->driver->driver_name)) {
printk(KERN_ERR "comedi%d: I/O port conflict\n", dev->minor);
return -EIO;
}
Expand Down Expand Up @@ -1227,7 +1227,8 @@ static int pcmmio_detach(struct comedi_device *dev)
{
int i;

printk(KERN_INFO "comedi%d: %s: remove\n", dev->minor, driver.driver_name);
printk(KERN_INFO "comedi%d: %s: remove\n", dev->minor,
dev->driver->driver_name);
if (dev->iobase)
release_region(dev->iobase, thisboard->total_iosize);

Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/staging/comedi/drivers/pcmuio.c
Original file line number Diff line number Diff line change
Expand Up @@ -757,13 +757,13 @@ static int pcmuio_attach(struct comedi_device *dev, struct comedi_devconfig *it)
irq[1] = it->options[2];

dev_dbg(dev->hw_dev, "comedi%d: %s: io: %lx attached\n", dev->minor,
driver.driver_name, iobase);
dev->driver->driver_name, iobase);

dev->iobase = iobase;

if (!iobase || !request_region(iobase,
thisboard->num_asics * ASIC_IOSIZE,
driver.driver_name)) {
dev->driver->driver_name)) {
dev_err(dev->hw_dev, "I/O port conflict\n");
return -EIO;
}
Expand Down Expand Up @@ -913,7 +913,7 @@ static int pcmuio_detach(struct comedi_device *dev)
int i;

dev_dbg(dev->hw_dev, "comedi%d: %s: remove\n", dev->minor,
driver.driver_name);
dev->driver->driver_name);
if (dev->iobase)
release_region(dev->iobase, ASIC_IOSIZE * thisboard->num_asics);

Expand Down

0 comments on commit c008f6f

Please sign in to comment.