Skip to content

Commit

Permalink
stand/kshim: Replace bus_generic_attach with bus_attach_children
Browse files Browse the repository at this point in the history
Fixes:	18250ec Replace calls to bus_generic_attach with bus_attach_children
Differential Revision:	https://reviews.freebsd.org/D48404
  • Loading branch information
bsdjhb committed Jan 11, 2025
1 parent 84a62d9 commit 4378bd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions stand/kshim/bsd_kernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,16 +205,14 @@ bus_release_resource(device_t dev, int type, int rid, struct resource *r)
return (EINVAL);
}

int
bus_generic_attach(device_t dev)
void
bus_attach_children(device_t dev)
{
device_t child;

TAILQ_FOREACH(child, &dev->dev_children, dev_link) {
device_probe_and_attach(child);
}

return (0);
}

bus_space_tag_t
Expand Down
2 changes: 1 addition & 1 deletion stand/kshim/bsd_kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ int bus_release_resource(device_t, int, int, struct resource *);
void bus_release_resources(device_t, const struct resource_spec *,
struct resource **);
struct resource *bus_alloc_resource_any(device_t, int, int *, unsigned int);
int bus_generic_attach(device_t);
void bus_attach_children(device_t);
bus_space_tag_t rman_get_bustag(struct resource *);
bus_space_handle_t rman_get_bushandle(struct resource *);
u_long rman_get_size(struct resource *);
Expand Down

0 comments on commit 4378bd3

Please sign in to comment.