summaryrefslogtreecommitdiffstats
path: root/include/driver.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-06-26 07:40:49 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-06-26 18:17:12 +0200
commit8d2762ff56bf76f2a8b9194e648dcdd24821a6ab (patch)
tree0fe0bced79ad916c5ce8cdf6e486c0bd7632c678 /include/driver.h
parentb70bfc27e6d904cb0e748833d882482ca2edc941 (diff)
downloadbarebox-8d2762ff56bf76f2a8b9194e648dcdd24821a6ab.tar.gz
barebox-8d2762ff56bf76f2a8b9194e648dcdd24821a6ab.tar.xz
driver: implement device_detect_by_name function
It becomes a common pattern for boards to find a device and call device_detect on it. Add a convenience wrapper for it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/driver.h')
-rw-r--r--include/driver.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/driver.h b/include/driver.h
index 8b3af4de26..b18318fe0c 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -159,6 +159,7 @@ int device_probe(struct device_d *dev);
/* detect devices attached to this device (cards, disks,...) */
int device_detect(struct device_d *dev);
+int device_detect_by_name(const char *devname);
/* Unregister a device. This function can fail, e.g. when the device
* has children.