summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-01-05 12:08:20 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-01-05 12:08:20 +0100
commit3dbe78ab5c0be677b142a6c111942557ba761f1c (patch)
tree034e6a794e756c9b48f1c5938b381d00e5c5fb37 /drivers
parent052d1c9e0756db2b02da98c97a6c50d26b8c28ce (diff)
parent8201a940e313cd9c2f989a7af5d6a4fb3f8ab31c (diff)
downloadbarebox-3dbe78ab5c0be677b142a6c111942557ba761f1c.tar.gz
barebox-3dbe78ab5c0be677b142a6c111942557ba761f1c.tar.xz
Merge branch 'for-next/net'
Diffstat (limited to 'drivers')
-rw-r--r--drivers/base/driver.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/base/driver.c b/drivers/base/driver.c
index 83260990af..c43a4bde2a 100644
--- a/drivers/base/driver.c
+++ b/drivers/base/driver.c
@@ -140,6 +140,14 @@ int device_detect_by_name(const char *__devname)
return ret;
}
+void device_detect_all(void)
+{
+ struct device_d *dev;
+
+ for_each_device(dev)
+ device_detect(dev);
+}
+
static int match(struct driver_d *drv, struct device_d *dev)
{
int ret;