From f53aada6a1a547a5747caf352265c857af839685 Mon Sep 17 00:00:00 2001 From: Tim Date: Mon, 24 Jan 2011 21:29:55 -0800 Subject: [PATCH] make device_probe_child() public --- sys/kern/subr_bus.c | 2 +- sys/sys/bus.h | 1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c index 06f94f7..2270a5a 100644 --- a/sys/kern/subr_bus.c +++ b/sys/kern/subr_bus.c @@ -1188,7 +1188,7 @@ next_matching_driver(devclass_t dc, device_t dev, driverlink_t last) return(TAILQ_NEXT(last, link)); } -static int +int device_probe_child(device_t dev, device_t child) { devclass_t dc; diff --git a/sys/sys/bus.h b/sys/sys/bus.h index 4fb84ef..9549fbc 100644 --- a/sys/sys/bus.h +++ b/sys/sys/bus.h @@ -370,6 +370,7 @@ int device_is_quiet(device_t dev); int device_print_prettyname(device_t dev); int device_printf(device_t dev, const char *, ...) __printflike(2, 3); int device_probe_and_attach(device_t dev); +int device_probe_child(device_t dev, device_t child); void device_quiet(device_t dev); void device_set_desc(device_t dev, const char* desc); void device_set_desc_copy(device_t dev, const char* desc); -- 1.7.0.4