diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-11-18 13:49:39 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-11-20 09:38:25 +0100 |
commit | f777b3b13fab090ad0f340c626c05176b4bf226d (patch) | |
tree | ff061c6be6d851acbaa82c1504c088879a7549d3 /include | |
parent | c81154671253d730ad159db136235bfe2111d2db (diff) | |
download | barebox-f777b3b13fab090ad0f340c626c05176b4bf226d.tar.gz barebox-f777b3b13fab090ad0f340c626c05176b4bf226d.tar.xz |
driver: introduce device_probe to manully probe a device
This will expect a driver to be specified
This is needed by the phylib the probe the generic phy if not driver found
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/driver.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/driver.h b/include/driver.h index f8d815c619..a085981740 100644 --- a/include/driver.h +++ b/include/driver.h @@ -148,6 +148,11 @@ struct driver_d { int register_driver(struct driver_d *); int register_device(struct device_d *); +/* manualy probe a device + * the driver need to be specified + */ +int device_probe(struct device_d *dev); + /* Unregister a device. This function can fail, e.g. when the device * has children. */ |