DragonFly BSD
DragonFly submit List (threaded) for 2011-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[PATCH] make device_probe_child() public


From: Tim <bissont@xxxxxxx>
Date: Mon, 24 Jan 2011 21:29:55 -0800

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]