Return BUS_PROBE_DEFAULT instead of 0.

This commit is contained in:
imp 2005-02-24 21:32:56 +00:00
parent 42a55e2441
commit ca4a8cf386
42 changed files with 57 additions and 57 deletions

View File

@ -85,7 +85,7 @@ agp_ali_probe(device_t dev)
if (desc) {
device_verbose(dev);
device_set_desc(dev, desc);
return 0;
return BUS_PROBE_DEFAULT;
}
return ENXIO;

View File

@ -209,7 +209,7 @@ agp_amd_probe(device_t dev)
if (desc) {
device_verbose(dev);
device_set_desc(dev, desc);
return 0;
return BUS_PROBE_DEFAULT;
}
return ENXIO;

View File

@ -103,7 +103,7 @@ agp_amd64_probe(device_t dev)
if ((desc = agp_amd64_match(dev))) {
device_verbose(dev);
device_set_desc(dev, desc);
return 0;
return BUS_PROBE_DEFAULT;
}
return ENXIO;

View File

@ -236,7 +236,7 @@ agp_i810_probe(device_t dev)
device_verbose(dev);
device_set_desc(dev, desc);
return 0;
return BUS_PROBE_DEFAULT;
}
return ENXIO;

View File

@ -133,7 +133,7 @@ agp_intel_probe(device_t dev)
if (desc) {
device_verbose(dev);
device_set_desc(dev, desc);
return 0;
return BUS_PROBE_DEFAULT;
}
return ENXIO;

View File

@ -123,7 +123,7 @@ agp_nvidia_probe (device_t dev)
if (desc) {
device_verbose(dev);
device_set_desc(dev, desc);
return (0);
return (BUS_PROBE_DEFAULT);
}
return (ENXIO);
}

View File

@ -121,7 +121,7 @@ agp_sis_probe(device_t dev)
if (desc) {
device_verbose(dev);
device_set_desc(dev, desc);
return 0;
return BUS_PROBE_DEFAULT;
}
return ENXIO;

View File

@ -145,7 +145,7 @@ agp_via_probe(device_t dev)
if (desc) {
device_verbose(dev);
device_set_desc(dev, desc);
return 0;
return BUS_PROBE_DEFAULT;
}
return ENXIO;

View File

@ -1621,7 +1621,7 @@ dc_probe(device_t dev)
if (t != NULL) {
device_set_desc(dev, t->dc_name);
return (0);
return (BUS_PROBE_DEFAULT);
}
return (ENXIO);

View File

@ -4994,7 +4994,7 @@ tulip_pci_probe(device_t dev)
}
if (name) {
device_set_desc(dev, name);
return -200;
return BUS_PROBE_LOW_PRIORITY;
}
return ENXIO;
}

View File

@ -603,27 +603,27 @@ sf_probe(dev)
case AD_SUBSYSID_62011_REV1:
device_set_desc(dev,
"Adaptec ANA-62011 10/100BaseTX");
return(0);
return (BUS_PROBE_DEFAULT);
case AD_SUBSYSID_62022:
device_set_desc(dev,
"Adaptec ANA-62022 10/100BaseTX");
return(0);
return (BUS_PROBE_DEFAULT);
case AD_SUBSYSID_62044_REV0:
case AD_SUBSYSID_62044_REV1:
device_set_desc(dev,
"Adaptec ANA-62044 10/100BaseTX");
return(0);
return (BUS_PROBE_DEFAULT);
case AD_SUBSYSID_62020:
device_set_desc(dev,
"Adaptec ANA-62020 10/100BaseFX");
return(0);
return (BUS_PROBE_DEFAULT);
case AD_SUBSYSID_69011:
device_set_desc(dev,
"Adaptec ANA-69011 10/100BaseTX");
return(0);
return (BUS_PROBE_DEFAULT);
default:
device_set_desc(dev, t->sf_name);
return(0);
return (BUS_PROBE_DEFAULT);
break;
}
}

View File

@ -1243,7 +1243,7 @@ skc_probe(dev)
if ((pci_get_vendor(dev) == t->sk_vid) &&
(pci_get_device(dev) == t->sk_did)) {
device_set_desc(dev, t->sk_name);
return(0);
return (BUS_PROBE_DEFAULT);
}
t++;
}
@ -1321,7 +1321,7 @@ sk_probe(dev)
break;
}
return(0);
return (BUS_PROBE_DEFAULT);
}
/*

View File

@ -2022,7 +2022,7 @@ ti_probe(dev)
if ((pci_get_vendor(dev) == t->ti_vid) &&
(pci_get_device(dev) == t->ti_did)) {
device_set_desc(dev, t->ti_name);
return (0);
return (BUS_PROBE_DEFAULT);
}
t++;
}

View File

@ -626,7 +626,7 @@ vr_probe(device_t dev)
if ((pci_get_vendor(dev) == t->vr_vid) &&
(pci_get_device(dev) == t->vr_did)) {
device_set_desc(dev, t->vr_name);
return (0);
return (BUS_PROBE_DEFAULT);
}
t++;
}

View File

@ -85,7 +85,7 @@ agp_ali_probe(device_t dev)
if (desc) {
device_verbose(dev);
device_set_desc(dev, desc);
return 0;
return BUS_PROBE_DEFAULT;
}
return ENXIO;

View File

@ -209,7 +209,7 @@ agp_amd_probe(device_t dev)
if (desc) {
device_verbose(dev);
device_set_desc(dev, desc);
return 0;
return BUS_PROBE_DEFAULT;
}
return ENXIO;

View File

@ -103,7 +103,7 @@ agp_amd64_probe(device_t dev)
if ((desc = agp_amd64_match(dev))) {
device_verbose(dev);
device_set_desc(dev, desc);
return 0;
return BUS_PROBE_DEFAULT;
}
return ENXIO;

View File

@ -236,7 +236,7 @@ agp_i810_probe(device_t dev)
device_verbose(dev);
device_set_desc(dev, desc);
return 0;
return BUS_PROBE_DEFAULT;
}
return ENXIO;

View File

@ -133,7 +133,7 @@ agp_intel_probe(device_t dev)
if (desc) {
device_verbose(dev);
device_set_desc(dev, desc);
return 0;
return BUS_PROBE_DEFAULT;
}
return ENXIO;

View File

@ -123,7 +123,7 @@ agp_nvidia_probe (device_t dev)
if (desc) {
device_verbose(dev);
device_set_desc(dev, desc);
return (0);
return (BUS_PROBE_DEFAULT);
}
return (ENXIO);
}

View File

@ -121,7 +121,7 @@ agp_sis_probe(device_t dev)
if (desc) {
device_verbose(dev);
device_set_desc(dev, desc);
return 0;
return BUS_PROBE_DEFAULT;
}
return ENXIO;

View File

@ -145,7 +145,7 @@ agp_via_probe(device_t dev)
if (desc) {
device_verbose(dev);
device_set_desc(dev, desc);
return 0;
return BUS_PROBE_DEFAULT;
}
return ENXIO;

View File

@ -166,7 +166,7 @@ alpm_probe(device_t dev)
return (ENXIO);
}
#endif
return (0);
return (BUS_PROBE_DEFAULT);
}
return (ENXIO);

View File

@ -163,7 +163,7 @@ amdpm_probe(device_t dev)
base &= 0xff00;
bus_set_resource(dev, SYS_RES_IOPORT, AMDPCI_PMBASE,
base+0xe0, 32);
return (0);
return (BUS_PROBE_DEFAULT);
}
if ((vid == AMDPM_VENDORID_NVIDIA) &&
@ -179,7 +179,7 @@ amdpm_probe(device_t dev)
bus_set_resource(dev, SYS_RES_IOPORT, NFPCI_PMBASE,
base, 32);
return (0);
return (BUS_PROBE_DEFAULT);
}
return ENXIO;

View File

@ -1621,7 +1621,7 @@ dc_probe(device_t dev)
if (t != NULL) {
device_set_desc(dev, t->dc_name);
return (0);
return (BUS_PROBE_DEFAULT);
}
return (ENXIO);

View File

@ -4994,7 +4994,7 @@ tulip_pci_probe(device_t dev)
}
if (name) {
device_set_desc(dev, name);
return -200;
return BUS_PROBE_LOW_PRIORITY;
}
return ENXIO;
}

View File

@ -1319,7 +1319,7 @@ mn_probe (device_t self)
return (ENXIO);
device_set_desc_copy(self, "Munich32X E1/T1 HDLC Controller");
return (0);
return (BUS_PROBE_DEFAULT);
}
static int

View File

@ -521,7 +521,7 @@ pcn_probe(dev)
return(ENXIO);
}
device_set_desc(dev, t->pcn_name);
return(0);
return(BUS_PROBE_DEFAULT);
}
/*

View File

@ -772,7 +772,7 @@ rl_probe(device_t dev)
}
device_set_desc(dev, t->rl_name);
return (0);
return (BUS_PROBE_DEFAULT);
}
t++;
}

View File

@ -603,27 +603,27 @@ sf_probe(dev)
case AD_SUBSYSID_62011_REV1:
device_set_desc(dev,
"Adaptec ANA-62011 10/100BaseTX");
return(0);
return (BUS_PROBE_DEFAULT);
case AD_SUBSYSID_62022:
device_set_desc(dev,
"Adaptec ANA-62022 10/100BaseTX");
return(0);
return (BUS_PROBE_DEFAULT);
case AD_SUBSYSID_62044_REV0:
case AD_SUBSYSID_62044_REV1:
device_set_desc(dev,
"Adaptec ANA-62044 10/100BaseTX");
return(0);
return (BUS_PROBE_DEFAULT);
case AD_SUBSYSID_62020:
device_set_desc(dev,
"Adaptec ANA-62020 10/100BaseFX");
return(0);
return (BUS_PROBE_DEFAULT);
case AD_SUBSYSID_69011:
device_set_desc(dev,
"Adaptec ANA-69011 10/100BaseTX");
return(0);
return (BUS_PROBE_DEFAULT);
default:
device_set_desc(dev, t->sf_name);
return(0);
return (BUS_PROBE_DEFAULT);
break;
}
}

View File

@ -879,7 +879,7 @@ sis_probe(device_t dev)
if ((pci_get_vendor(dev) == t->sis_vid) &&
(pci_get_device(dev) == t->sis_did)) {
device_set_desc(dev, t->sis_name);
return(0);
return (BUS_PROBE_DEFAULT);
}
t++;
}

View File

@ -1243,7 +1243,7 @@ skc_probe(dev)
if ((pci_get_vendor(dev) == t->sk_vid) &&
(pci_get_device(dev) == t->sk_did)) {
device_set_desc(dev, t->sk_name);
return(0);
return (BUS_PROBE_DEFAULT);
}
t++;
}
@ -1321,7 +1321,7 @@ sk_probe(dev)
break;
}
return(0);
return (BUS_PROBE_DEFAULT);
}
/*

View File

@ -969,7 +969,7 @@ ste_probe(dev)
if ((pci_get_vendor(dev) == t->ste_vid) &&
(pci_get_device(dev) == t->ste_did)) {
device_set_desc(dev, t->ste_name);
return(0);
return (BUS_PROBE_DEFAULT);
}
t++;
}

View File

@ -2022,7 +2022,7 @@ ti_probe(dev)
if ((pci_get_vendor(dev) == t->ti_vid) &&
(pci_get_device(dev) == t->ti_did)) {
device_set_desc(dev, t->ti_name);
return (0);
return (BUS_PROBE_DEFAULT);
}
t++;
}

View File

@ -1100,7 +1100,7 @@ tl_probe(dev)
if ((pci_get_vendor(dev) == t->tl_vid) &&
(pci_get_device(dev) == t->tl_did)) {
device_set_desc(dev, t->tl_name);
return(0);
return (BUS_PROBE_DEFAULT);
}
t++;
}

View File

@ -626,7 +626,7 @@ vr_probe(device_t dev)
if ((pci_get_vendor(dev) == t->vr_vid) &&
(pci_get_device(dev) == t->vr_did)) {
device_set_desc(dev, t->vr_name);
return (0);
return (BUS_PROBE_DEFAULT);
}
t++;
}

View File

@ -772,7 +772,7 @@ wb_probe(dev)
if ((pci_get_vendor(dev) == t->wb_vid) &&
(pci_get_device(dev) == t->wb_did)) {
device_set_desc(dev, t->wb_name);
return(0);
return (BUS_PROBE_DEFAULT);
}
t++;
}

View File

@ -1062,7 +1062,7 @@ xl_probe(device_t dev)
if ((pci_get_vendor(dev) == t->xl_vid) &&
(pci_get_device(dev) == t->xl_did)) {
device_set_desc(dev, t->xl_name);
return (0);
return (BUS_PROBE_DEFAULT);
}
t++;
}

View File

@ -156,7 +156,7 @@ intsmb_probe(device_t dev)
return (EINVAL); /* XXX don't know what to return else */
device_set_desc(dev,"Intel PIIX4 SMBUS Interface");
return (0); /* XXX don't know what to return else */
return (BUS_PROBE_DEFAULT); /* XXX don't know what to return else */
}
static int
intsmb_attach(device_t dev)
@ -735,7 +735,7 @@ intpm_probe(device_t dev)
if(ep->desc!=NULL){
device_set_desc(dev,ep->desc);
bus_set_resource(dev,SYS_RES_IRQ,0,9,1); /* XXX setup intr resource */
return 0;
return (BUS_PROBE_DEFAULT);
}else{
return ENXIO;
}

View File

@ -3291,7 +3291,7 @@ static int ncr_probe (device_t dev)
i = ncr_chip_lookup(pci_get_devid(dev), pci_get_revid(dev));
if (i >= 0) {
device_set_desc(dev, ncr_chip_table[i].name);
return (0);
return (BUS_PROBE_DEFAULT);
}
return (ENXIO);

View File

@ -227,7 +227,7 @@ viapm_586b_probe(device_t dev)
return ENXIO;
}
device_set_desc(dev, "VIA VT82C586B Power Management Unit");
return 0;
return (BUS_PROBE_DEFAULT);
default:
break;
@ -306,7 +306,7 @@ viapm_pro_probe(device_t dev)
}
device_set_desc(dev, desc);
return 0;
return (BUS_PROBE_DEFAULT);
default:
break;

View File

@ -215,7 +215,7 @@ xrpu_probe(device_t self)
return ENXIO;
device_set_desc(self, desc);
return 0;
return (BUS_PROBE_DEFAULT);
}
static int