aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/uio/uio_mf624.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/uio/uio_mf624.c')
-rw-r--r--drivers/uio/uio_mf624.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/uio/uio_mf624.c b/drivers/uio/uio_mf624.c
index a1768b2f4493..f764adbfe036 100644
--- a/drivers/uio/uio_mf624.c
+++ b/drivers/uio/uio_mf624.c
@@ -42,7 +42,7 @@
42 42
43enum mf624_interrupt_source {ADC, CTR4, ALL}; 43enum mf624_interrupt_source {ADC, CTR4, ALL};
44 44
45void mf624_disable_interrupt(enum mf624_interrupt_source source, 45static void mf624_disable_interrupt(enum mf624_interrupt_source source,
46 struct uio_info *info) 46 struct uio_info *info)
47{ 47{
48 void __iomem *INTCSR_reg = info->mem[0].internal_addr + INTCSR; 48 void __iomem *INTCSR_reg = info->mem[0].internal_addr + INTCSR;
@@ -70,7 +70,7 @@ void mf624_disable_interrupt(enum mf624_interrupt_source source,
70 } 70 }
71} 71}
72 72
73void mf624_enable_interrupt(enum mf624_interrupt_source source, 73static void mf624_enable_interrupt(enum mf624_interrupt_source source,
74 struct uio_info *info) 74 struct uio_info *info)
75{ 75{
76 void __iomem *INTCSR_reg = info->mem[0].internal_addr + INTCSR; 76 void __iomem *INTCSR_reg = info->mem[0].internal_addr + INTCSR;
@@ -220,7 +220,6 @@ static void mf624_pci_remove(struct pci_dev *dev)
220 uio_unregister_device(info); 220 uio_unregister_device(info);
221 pci_release_regions(dev); 221 pci_release_regions(dev);
222 pci_disable_device(dev); 222 pci_disable_device(dev);
223 pci_set_drvdata(dev, NULL);
224 223
225 iounmap(info->mem[0].internal_addr); 224 iounmap(info->mem[0].internal_addr);
226 iounmap(info->mem[1].internal_addr); 225 iounmap(info->mem[1].internal_addr);