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:
Vladimir Kondratyev 2023-08-03 19:10:49 +03:00
parent c9b06fa527
commit 1e55a13062
1 changed files with 1 additions and 7 deletions

View File

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