Set BUS_PROBE_NOWILDCARD on this attachment as a stopgap. Unconditionally

poking at registers in unknown devices is not the best probe mechanism.
This should be reverted and a better solution found later.
This commit is contained in:
Nathan Whitehorn 2013-10-22 14:10:00 +00:00
parent 7f5392e292
commit 11dc3f01ec
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=256900

View File

@ -50,14 +50,25 @@ __FBSDID("$FreeBSD$");
static int
cfi_nexus_probe(device_t dev)
{
return (BUS_PROBE_NOWILDCARD);
}
return cfi_probe(dev);
static int
cfi_nexus_attach(device_t dev)
{
int error;
error = cfi_probe(dev);
if (error != 0)
return (error);
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}