summaryrefslogtreecommitdiffstats
path: root/sys/mips
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2016-04-27 17:49:42 +0000
committerjhb <jhb@FreeBSD.org>2016-04-27 17:49:42 +0000
commit9e4bb0297ca054e482d94668c3aa02b479b223bd (patch)
treedb7a570c9f5ca34e64097390858f25304cf3fd08 /sys/mips
parent4a26c9bbdf73e90e480ac36d601cd327f8cf76f0 (diff)
downloadFreeBSD-src-9e4bb0297ca054e482d94668c3aa02b479b223bd.zip
FreeBSD-src-9e4bb0297ca054e482d94668c3aa02b479b223bd.tar.gz
Add a bus_null_rescan() method that always fails with an error.
Use this in place of kobj_error_method to disable BUS_RESCAN() on PCI drivers that do not use the "standard" scanning algorithm.
Diffstat (limited to 'sys/mips')
-rw-r--r--sys/mips/nlm/xlp_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/mips/nlm/xlp_pci.c b/sys/mips/nlm/xlp_pci.c
index 43b1574..51ae2b7 100644
--- a/sys/mips/nlm/xlp_pci.c
+++ b/sys/mips/nlm/xlp_pci.c
@@ -154,7 +154,7 @@ static device_method_t xlp_pci_methods[] = {
/* Device interface */
DEVMETHOD(device_probe, xlp_pci_probe),
DEVMETHOD(device_attach, xlp_pci_attach),
- DEVMETHOD(bus_rescan, kobj_error_method),
+ DEVMETHOD(bus_rescan, bus_null_rescan),
DEVMETHOD_END
};
OpenPOWER on IntegriCloud