diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-04-21 23:12:25 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-04-21 23:12:25 +0000 |
commit | 4d7d3025c31de7be54f63de887efe85f75189bb0 (patch) | |
tree | 812e78589cd32f6fd7ab544e847ebddebcfca86e /sys/dev | |
parent | 119536610875d9317b9e01e99972a47943177d7e (diff) |
let this compile on RAMDISKS, which have no ioctl
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/pci.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index 70e06b13fdb..7a18d0f0746 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci.c,v 1.75 2010/04/21 21:16:43 kettenis Exp $ */ +/* $OpenBSD: pci.c,v 1.76 2010/04/21 23:12:24 deraadt Exp $ */ /* $NetBSD: pci.c,v 1.31 1997/06/06 23:48:04 thorpej Exp $ */ /* @@ -1044,8 +1044,6 @@ pciioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) return (error); } -#endif - void pci_disable_vga(pci_chipset_tag_t pc, pcitag_t tag) { @@ -1097,6 +1095,7 @@ pci_unroute_vga(struct pci_softc *sc) pci_unroute_vga((struct pci_softc *)sc->sc_dev.dv_parent->dv_parent); } +#endif /* USER_PCICONF */ int pci_count_vga(struct pci_attach_args *pa) |