diff options
author | jhb <jhb@FreeBSD.org> | 2016-04-27 17:49:42 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2016-04-27 17:49:42 +0000 |
commit | 9e4bb0297ca054e482d94668c3aa02b479b223bd (patch) | |
tree | db7a570c9f5ca34e64097390858f25304cf3fd08 /sys/powerpc | |
parent | 4a26c9bbdf73e90e480ac36d601cd327f8cf76f0 (diff) | |
download | FreeBSD-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/powerpc')
-rw-r--r-- | sys/powerpc/ofw/ofw_pcibus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/powerpc/ofw/ofw_pcibus.c b/sys/powerpc/ofw/ofw_pcibus.c index 05aa06c..92022b5 100644 --- a/sys/powerpc/ofw/ofw_pcibus.c +++ b/sys/powerpc/ofw/ofw_pcibus.c @@ -77,7 +77,7 @@ static device_method_t ofw_pcibus_methods[] = { /* Bus interface */ DEVMETHOD(bus_child_deleted, ofw_pcibus_child_deleted), DEVMETHOD(bus_child_pnpinfo_str, ofw_pcibus_child_pnpinfo_str_method), - DEVMETHOD(bus_rescan, kobj_error_method), + DEVMETHOD(bus_rescan, bus_null_rescan), /* PCI interface */ DEVMETHOD(pci_alloc_devinfo, ofw_pcibus_alloc_devinfo), |