summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-01-29 15:37:36 +0000
committerpeter <peter@FreeBSD.org>2000-01-29 15:37:36 +0000
commitd801231f79922dd1a53a63a9c85eeb41444807c0 (patch)
treeba8c9bcfc290b4fa4dcb9c151998e2a6bbcf13b6 /sys/dev/pci
parent89b9b9b4af13c0b604e163a76f6dfa9e52ef6843 (diff)
downloadFreeBSD-src-d801231f79922dd1a53a63a9c85eeb41444807c0.zip
FreeBSD-src-d801231f79922dd1a53a63a9c85eeb41444807c0.tar.gz
Put a FYI in the compatability shims so that people are aware that they
are using an old unconverted driver. Most (if not all) of the drivers for common hardware are newbus these days. However, we don't want to encourage people to take the easy way out and write new drivers using the shims. This is just passive "encouragement". Reviewed by: phk
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 9bbdb36..9c05ac5 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -903,6 +903,7 @@ pci_compat_attach(device_t dev)
*dvp->pd_count = unit;
if (dvp->pd_attach)
dvp->pd_attach(cfg, unit);
+ device_printf(dev, "driver is using old-style compatability shims\n");
return 0;
}
OpenPOWER on IntegriCloud