Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 337581
b: refs/heads/master
c: ed610aa
h: refs/heads/master
i:
  337579: 2242136
v: v3
  • Loading branch information
Ian Abbott authored and Greg Kroah-Hartman committed Nov 1, 2012
1 parent 67e8c13 commit a1307ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 19d6ce544631bd6cc1649696423715c7142e85b8
refs/heads/master: ed610aa04c283e1dbe4de769a58fec27b1259d3d
5 changes: 2 additions & 3 deletions trunk/drivers/staging/comedi/drivers/jr3_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ Devices: [JR3] PCI force sensor board (jr3_pci)
#define PCI_DEVICE_ID_JR3_4_CHANNEL 0x3114

struct jr3_pci_dev_private {
int pci_enabled;
struct jr3_t __iomem *iobase;
int n_channels;
struct timer_list timer;
Expand Down Expand Up @@ -787,7 +786,7 @@ static int __devinit jr3_pci_auto_attach(struct comedi_device *dev,
if (result < 0)
return -EIO;

devpriv->pci_enabled = 1;
dev->iobase = 1; /* the "detach" needs this */
devpriv->iobase = ioremap(pci_resource_start(pcidev, 0),
offsetof(struct jr3_t, channel[devpriv->n_channels]));
if (!devpriv->iobase)
Expand Down Expand Up @@ -906,7 +905,7 @@ static void jr3_pci_detach(struct comedi_device *dev)
}
if (devpriv->iobase)
iounmap(devpriv->iobase);
if (devpriv->pci_enabled)
if (dev->iobase)
comedi_pci_disable(pcidev);
}
}
Expand Down

0 comments on commit a1307ec

Please sign in to comment.