Be consistent about checking return value from bus_delayed_attach_children.
Most places checked, but a couple last minute changes didn't. Make them all use the return value. Noticed by: rpokala@
This commit is contained in:
parent
16db09d8c1
commit
9f07ef760a
@ -347,9 +347,7 @@ bcm_bsc_attach(device_t dev)
|
||||
}
|
||||
|
||||
/* Probe and attach the iicbus when interrupts are available. */
|
||||
bus_delayed_attach_children(dev);
|
||||
|
||||
return (0);
|
||||
return (bus_delayed_attach_children(dev));
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -220,9 +220,7 @@ a37x0_spi_attach(device_t dev)
|
||||
device_add_child(dev, "spibus", -1);
|
||||
|
||||
/* Probe and attach the spibus when interrupts are available. */
|
||||
bus_delayed_attach_children(dev);
|
||||
|
||||
return (0);
|
||||
return (bus_delayed_attach_children(dev));
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -131,9 +131,7 @@ owc_gpiobus_attach(device_t dev)
|
||||
free(kids, M_TEMP);
|
||||
if (nkid == 0)
|
||||
device_add_child(dev, "ow", -1);
|
||||
bus_delayed_attach_children(dev);
|
||||
|
||||
return (0);
|
||||
return (bus_delayed_attach_children(dev));
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
x
Reference in New Issue
Block a user