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:
Warner Losh 2019-12-13 21:39:20 +00:00
parent 16db09d8c1
commit 9f07ef760a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=355735
3 changed files with 3 additions and 9 deletions

View File

@ -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

View File

@ -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

View File

@ -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