summaryrefslogtreecommitdiffstats
path: root/sys/pci/intpm.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-04-24 20:17:05 +0000
committerpeter <peter@FreeBSD.org>1999-04-24 20:17:05 +0000
commitd6f4bd18f508c92a26bf83b89c11d5641e61fbeb (patch)
tree83fa637897b94fbf0e8ba3471e5bea478adeb79f /sys/pci/intpm.c
parente7462e4ae57c4f138096d5845ab761b06a08fb0a (diff)
downloadFreeBSD-src-d6f4bd18f508c92a26bf83b89c11d5641e61fbeb.zip
FreeBSD-src-d6f4bd18f508c92a26bf83b89c11d5641e61fbeb.tar.gz
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.
Diffstat (limited to 'sys/pci/intpm.c')
-rw-r--r--sys/pci/intpm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/pci/intpm.c b/sys/pci/intpm.c
index a07d752..b811479 100644
--- a/sys/pci/intpm.c
+++ b/sys/pci/intpm.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: intpm.c,v 1.4 1999/01/28 00:57:53 dillon Exp $
+ * $Id: intpm.c,v 1.5 1999/04/21 07:26:29 peter Exp $
*/
#include "pci.h"
@@ -150,7 +150,11 @@ static struct pci_device intpm_device = {
&intpm_count
};
+#ifdef COMPAT_PCI_DRIVER
+COMPAT_PCI_DRIVER (intpm, intpm_device);
+#else
DATA_SET (pcidevice_set, intpm_device);
+#endif /* COMPAT_PCI_DRIVER */
static int
intsmb_probe(device_t dev)
OpenPOWER on IntegriCloud