[PATCH] make device_probe_child() public

Tim bissont at mac.com
Mon Jan 24 21:29:55 PST 2011


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


--Boundary_(ID_UFDgo8KnsWSexNpyQBJ7hg)
Content-type: text/plain; x-mac-type=0; x-mac-creator=0;
 name=0001-Pull-in-FreeBSD-sglist.patch
Content-transfer-encoding: 7BIT
Content-disposition: attachment; filename=0001-Pull-in-FreeBSD-sglist.patch





More information about the Submit mailing list