aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/vx
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1997-07-01 00:45:45 +0000
committerBruce Evans <bde@FreeBSD.org>1997-07-01 00:45:45 +0000
commit48792cfc182a3d5fce70e43b7c318bad3e7185b9 (patch)
tree703fd238f5a80c6e83ee078404fed5a8eff647d4 /sys/dev/vx
parent61f33230580f5b9cc08f0f5c1824bea7a57d591c (diff)
downloadsrc-48792cfc182a3d5fce70e43b7c318bad3e7185b9.tar.gz
src-48792cfc182a3d5fce70e43b7c318bad3e7185b9.zip
Don't cast function pointers to (void *). This will cause warnings.
They should be fixed when similar warnings for the general interrupt attach routines are fixed. Removed unused #include.
Notes
Notes: svn path=/head/; revision=27128
Diffstat (limited to 'sys/dev/vx')
-rw-r--r--sys/dev/vx/if_vx_eisa.c6
-rw-r--r--sys/dev/vx/if_vx_pci.c4
2 files changed, 3 insertions, 7 deletions
diff --git a/sys/dev/vx/if_vx_eisa.c b/sys/dev/vx/if_vx_eisa.c
index 264c17c78f00..f185164674bb 100644
--- a/sys/dev/vx/if_vx_eisa.c
+++ b/sys/dev/vx/if_vx_eisa.c
@@ -51,8 +51,6 @@
#include <netns/ns_if.h>
#endif
-#include <machine/clock.h>
-
#include <i386/eisa/eisaconf.h>
#include <dev/vx/if_vxreg.h>
@@ -165,7 +163,7 @@ vx_eisa_attach(e_dev)
level_intr = FALSE;
- if (eisa_reg_intr(e_dev, irq, (void *) vxintr, (void *) sc, &net_imask,
+ if (eisa_reg_intr(e_dev, irq, vxintr, (void *) sc, &net_imask,
/* shared == */ level_intr)) {
vxfree(sc);
return -1;
@@ -178,7 +176,7 @@ vx_eisa_attach(e_dev)
if (eisa_enable_intr(e_dev, irq)) {
vxfree(sc);
- eisa_release_intr(e_dev, irq, (void *) vxintr);
+ eisa_release_intr(e_dev, irq, vxintr);
return -1;
}
return 0;
diff --git a/sys/dev/vx/if_vx_pci.c b/sys/dev/vx/if_vx_pci.c
index 5be83dc97685..b667b89bb4d9 100644
--- a/sys/dev/vx/if_vx_pci.c
+++ b/sys/dev/vx/if_vx_pci.c
@@ -51,8 +51,6 @@
#include <netns/ns_if.h>
#endif
-#include <machine/clock.h>
-
#include <pci/pcivar.h>
#include <dev/vx/if_vxreg.h>
@@ -128,7 +126,7 @@ vx_pci_attach(
*/
at_shutdown(vx_pci_shutdown, sc, SHUTDOWN_POST_SYNC);
- pci_map_int(config_id, (void *) vxintr, (void *) sc, &net_imask);
+ pci_map_int(config_id, vxintr, (void *) sc, &net_imask);
}
static struct pci_device vxdevice = {