spibus(4): Skip bus_generic_detach() on device detach
device_delete_children() detaches all children too. MFC after: 1 month Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D41240
This commit is contained in:
parent
c9b06fa527
commit
1e55a13062
|
@ -70,13 +70,7 @@ spibus_attach(device_t dev)
|
||||||
static int
|
static int
|
||||||
spibus_detach(device_t dev)
|
spibus_detach(device_t dev)
|
||||||
{
|
{
|
||||||
int err;
|
return (device_delete_children(dev));
|
||||||
|
|
||||||
if ((err = bus_generic_detach(dev)) != 0)
|
|
||||||
return (err);
|
|
||||||
device_delete_children(dev);
|
|
||||||
|
|
||||||
return (0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
Loading…
Reference in New Issue