diff options
author | Peter Wemm <peter@FreeBSD.org> | 1999-04-24 20:17:05 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 1999-04-24 20:17:05 +0000 |
commit | 96b3554e5c90242d0c5eea10fc394975d03303a8 (patch) | |
tree | df3ac2ff838e9910e3d3aeba252766e697e2dc6a /sys/pci/pcic_p.c | |
parent | 46f40af05253fcf39fcddabbe20a6b365fe73e4c (diff) | |
download | src-96b3554e5c90242d0c5eea10fc394975d03303a8.tar.gz src-96b3554e5c90242d0c5eea10fc394975d03303a8.zip |
Use COMPAT_PCI_DRIVER() for registration if it exists. This shouldn't
hurt the driver portability to 3.x too much for where drivers are shared.
Notes
Notes:
svn path=/head/; revision=46024
Diffstat (limited to 'sys/pci/pcic_p.c')
-rw-r--r-- | sys/pci/pcic_p.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/pci/pcic_p.c b/sys/pci/pcic_p.c index a97588cf309b..d9acf4fdde22 100644 --- a/sys/pci/pcic_p.c +++ b/sys/pci/pcic_p.c @@ -26,7 +26,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: pcic_p.c,v 1.8 1999/01/25 12:59:31 torstenb Exp $ + * $Id: pcic_p.c,v 1.9 1999/04/01 15:28:09 nsayer Exp $ */ #include "pci.h" @@ -57,7 +57,11 @@ static struct pci_device pcic_pci_driver = { NULL }; +#ifdef COMPAT_PCI_DRIVER +COMPAT_PCI_DRIVER(pcic_pci, pcic_pci_driver); +#else DATA_SET(pcidevice_set, pcic_pci_driver); +#endif /* COMPAT_PCI_DRIVER */ /* * Return the ID string for the controller if the vendor/product id |