diff options
Diffstat (limited to 'drivers/isdn/hisax/hfc_pci.c')
-rw-r--r-- | drivers/isdn/hisax/hfc_pci.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/isdn/hisax/hfc_pci.c b/drivers/isdn/hisax/hfc_pci.c index 8e5b03161b2f..ea0e4c6de3fb 100644 --- a/drivers/isdn/hisax/hfc_pci.c +++ b/drivers/isdn/hisax/hfc_pci.c | |||
@@ -86,7 +86,7 @@ release_io_hfcpci(struct IsdnCardState *cs) | |||
86 | pci_free_consistent(cs->hw.hfcpci.dev, 0x8000, | 86 | pci_free_consistent(cs->hw.hfcpci.dev, 0x8000, |
87 | cs->hw.hfcpci.fifos, cs->hw.hfcpci.dma); | 87 | cs->hw.hfcpci.fifos, cs->hw.hfcpci.dma); |
88 | cs->hw.hfcpci.fifos = NULL; | 88 | cs->hw.hfcpci.fifos = NULL; |
89 | iounmap((void *)cs->hw.hfcpci.pci_io); | 89 | iounmap(cs->hw.hfcpci.pci_io); |
90 | } | 90 | } |
91 | 91 | ||
92 | /********************************************************************************/ | 92 | /********************************************************************************/ |
@@ -128,7 +128,7 @@ reset_hfcpci(struct IsdnCardState *cs) | |||
128 | Write_hfc(cs, HFCPCI_INT_M1, cs->hw.hfcpci.int_m1); | 128 | Write_hfc(cs, HFCPCI_INT_M1, cs->hw.hfcpci.int_m1); |
129 | 129 | ||
130 | /* Clear already pending ints */ | 130 | /* Clear already pending ints */ |
131 | if (Read_hfc(cs, HFCPCI_INT_S1)); | 131 | Read_hfc(cs, HFCPCI_INT_S1); |
132 | 132 | ||
133 | Write_hfc(cs, HFCPCI_STATES, HFCPCI_LOAD_STATE | 2); /* HFC ST 2 */ | 133 | Write_hfc(cs, HFCPCI_STATES, HFCPCI_LOAD_STATE | 2); /* HFC ST 2 */ |
134 | udelay(10); | 134 | udelay(10); |
@@ -158,7 +158,7 @@ reset_hfcpci(struct IsdnCardState *cs) | |||
158 | /* Finally enable IRQ output */ | 158 | /* Finally enable IRQ output */ |
159 | cs->hw.hfcpci.int_m2 = HFCPCI_IRQ_ENABLE; | 159 | cs->hw.hfcpci.int_m2 = HFCPCI_IRQ_ENABLE; |
160 | Write_hfc(cs, HFCPCI_INT_M2, cs->hw.hfcpci.int_m2); | 160 | Write_hfc(cs, HFCPCI_INT_M2, cs->hw.hfcpci.int_m2); |
161 | if (Read_hfc(cs, HFCPCI_INT_S1)); | 161 | Read_hfc(cs, HFCPCI_INT_S1); |
162 | } | 162 | } |
163 | 163 | ||
164 | /***************************************************/ | 164 | /***************************************************/ |
@@ -1537,7 +1537,7 @@ hfcpci_bh(struct work_struct *work) | |||
1537 | cs->hw.hfcpci.int_m1 &= ~HFCPCI_INTS_TIMER; | 1537 | cs->hw.hfcpci.int_m1 &= ~HFCPCI_INTS_TIMER; |
1538 | Write_hfc(cs, HFCPCI_INT_M1, cs->hw.hfcpci.int_m1); | 1538 | Write_hfc(cs, HFCPCI_INT_M1, cs->hw.hfcpci.int_m1); |
1539 | /* Clear already pending ints */ | 1539 | /* Clear already pending ints */ |
1540 | if (Read_hfc(cs, HFCPCI_INT_S1)); | 1540 | Read_hfc(cs, HFCPCI_INT_S1); |
1541 | Write_hfc(cs, HFCPCI_STATES, 4 | HFCPCI_LOAD_STATE); | 1541 | Write_hfc(cs, HFCPCI_STATES, 4 | HFCPCI_LOAD_STATE); |
1542 | udelay(10); | 1542 | udelay(10); |
1543 | Write_hfc(cs, HFCPCI_STATES, 4); | 1543 | Write_hfc(cs, HFCPCI_STATES, 4); |
@@ -1692,7 +1692,7 @@ setup_hfcpci(struct IsdnCard *card) | |||
1692 | printk(KERN_WARNING "HFC-PCI: No IRQ for PCI card found\n"); | 1692 | printk(KERN_WARNING "HFC-PCI: No IRQ for PCI card found\n"); |
1693 | return (0); | 1693 | return (0); |
1694 | } | 1694 | } |
1695 | cs->hw.hfcpci.pci_io = (char *)(unsigned long)dev_hfcpci->resource[1].start; | 1695 | cs->hw.hfcpci.pci_io = ioremap(dev_hfcpci->resource[1].start, 256); |
1696 | printk(KERN_INFO "HiSax: HFC-PCI card manufacturer: %s card name: %s\n", id_list[i].vendor_name, id_list[i].card_name); | 1696 | printk(KERN_INFO "HiSax: HFC-PCI card manufacturer: %s card name: %s\n", id_list[i].vendor_name, id_list[i].card_name); |
1697 | 1697 | ||
1698 | if (!cs->hw.hfcpci.pci_io) { | 1698 | if (!cs->hw.hfcpci.pci_io) { |
@@ -1716,7 +1716,6 @@ setup_hfcpci(struct IsdnCard *card) | |||
1716 | return 0; | 1716 | return 0; |
1717 | } | 1717 | } |
1718 | pci_write_config_dword(cs->hw.hfcpci.dev, 0x80, (u32)cs->hw.hfcpci.dma); | 1718 | pci_write_config_dword(cs->hw.hfcpci.dev, 0x80, (u32)cs->hw.hfcpci.dma); |
1719 | cs->hw.hfcpci.pci_io = ioremap((ulong) cs->hw.hfcpci.pci_io, 256); | ||
1720 | printk(KERN_INFO | 1719 | printk(KERN_INFO |
1721 | "HFC-PCI: defined at mem %p fifo %p(%lx) IRQ %d HZ %d\n", | 1720 | "HFC-PCI: defined at mem %p fifo %p(%lx) IRQ %d HZ %d\n", |
1722 | cs->hw.hfcpci.pci_io, | 1721 | cs->hw.hfcpci.pci_io, |