Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197240
b: refs/heads/master
c: 2f78c64
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed May 11, 2010
1 parent 6fa91f8 commit 7f28ef2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 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: 6dd22814640bf04d2007489d8c1d1e0d24a09128
refs/heads/master: 2f78c64255bc6e960bf822f65bd80830f053e182
13 changes: 6 additions & 7 deletions trunk/drivers/staging/comedi/drivers/addi-data/addi_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ static const struct addi_board boardtypes[] = {
0,
0,
0,
0,
0,
NULL,
NULL,
32,
0,
0,
Expand Down Expand Up @@ -2527,7 +2527,7 @@ static const struct addi_board boardtypes[] = {

#define n_boardtypes (sizeof(boardtypes)/sizeof(struct addi_board))

struct comedi_driver driver_addi = {
static struct comedi_driver driver_addi = {
.driver_name = "addi_common",
.module = THIS_MODULE,
.attach = i_ADDI_Attach,
Expand Down Expand Up @@ -2639,9 +2639,8 @@ static int i_ADDI_Attach(struct comedi_device *dev, struct comedi_devconfig *it)
devpriv->ps_BoardInfo = this_board;
devpriv->i_IobaseReserved = (int) io_addr[3];
printk("\nioremap begin");
devpriv->dw_AiBase =
(unsigned long) ioremap(io_addr[3],
this_board->i_IorangeBase3);
devpriv->dw_AiBase = ioremap(io_addr[3],
this_board->i_IorangeBase3);
printk("\nioremap end");
}

Expand Down Expand Up @@ -2952,7 +2951,7 @@ static int i_ADDI_Detach(struct comedi_device *dev)
devpriv->ui_DmaBufferPages[1]);
}
} else {
iounmap((void *)devpriv->dw_AiBase);
iounmap(devpriv->dw_AiBase);

if (devpriv->allocated) {
i_pci_card_free(devpriv->amcc);
Expand Down

0 comments on commit 7f28ef2

Please sign in to comment.