Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364109
b: refs/heads/master
c: 55d2a20
h: refs/heads/master
i:
  364107: 5404332
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Apr 11, 2013
1 parent c0ec8b8 commit 6fff79f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 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: 81d985a11e9a51eb88ddea98df8d60bfdda7cafb
refs/heads/master: 55d2a208923e655d3453b66676f957b0d60be108
6 changes: 1 addition & 5 deletions trunk/drivers/staging/comedi/drivers/dt3000.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,6 @@ static const struct dt3k_boardtype dt3k_boardtypes[] = {
},
};

#define DT3000_SIZE (4*0x1000)

/* dual-ported RAM location definitions */

#define DPR_DAC_buffer (4*0x000)
Expand Down Expand Up @@ -720,7 +718,6 @@ static int dt3000_auto_attach(struct comedi_device *dev,
const struct dt3k_boardtype *this_board = NULL;
struct dt3k_private *devpriv;
struct comedi_subdevice *s;
resource_size_t pci_base;
int ret = 0;

if (context < ARRAY_SIZE(dt3k_boardtypes))
Expand All @@ -739,8 +736,7 @@ static int dt3000_auto_attach(struct comedi_device *dev,
if (ret < 0)
return ret;

pci_base = pci_resource_start(pcidev, 0);
devpriv->io_addr = ioremap(pci_base, DT3000_SIZE);
devpriv->io_addr = pci_ioremap_bar(pcidev, 0);
if (!devpriv->io_addr)
return -ENOMEM;

Expand Down

0 comments on commit 6fff79f

Please sign in to comment.