diff options
| author | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2013-10-22 14:10:00 +0000 |
|---|---|---|
| committer | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2013-10-22 14:10:00 +0000 |
| commit | 11dc3f01ec3b2ce5eee28ad1f0a334cf2e302265 (patch) | |
| tree | edf094c3ec27a3be5d95bc63e4a70ae2ee29e28c /sys/dev/cfi | |
| parent | 7f5392e29284b2b6b30508d2263bd44ff36500fb (diff) | |
Notes
Diffstat (limited to 'sys/dev/cfi')
| -rw-r--r-- | sys/dev/cfi/cfi_bus_nexus.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/sys/dev/cfi/cfi_bus_nexus.c b/sys/dev/cfi/cfi_bus_nexus.c index 4e1fa4ebfefa..a87ee143dbe5 100644 --- a/sys/dev/cfi/cfi_bus_nexus.c +++ b/sys/dev/cfi/cfi_bus_nexus.c @@ -50,14 +50,25 @@ __FBSDID("$FreeBSD$"); static int cfi_nexus_probe(device_t dev) { + return (BUS_PROBE_NOWILDCARD); +} + +static int +cfi_nexus_attach(device_t dev) +{ + int error; + + error = cfi_probe(dev); + if (error != 0) + return (error); - return cfi_probe(dev); + return cfi_attach(dev); } static device_method_t cfi_nexus_methods[] = { /* device interface */ DEVMETHOD(device_probe, cfi_nexus_probe), - DEVMETHOD(device_attach, cfi_attach), + DEVMETHOD(device_attach, cfi_nexus_attach), DEVMETHOD(device_detach, cfi_detach), {0, 0} |
