diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-09-27 23:00:45 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-09-29 12:11:14 +0200 |
commit | 3b0a637921919bff1dfda6c1e204c6b30f6e8ca3 (patch) | |
tree | ca7f849986033c586a5eb10327fc617784d89b1d /fs | |
parent | 00d996c94208c8e2736f5faa6d7f6e17f99061a0 (diff) | |
download | barebox-3b0a637921919bff1dfda6c1e204c6b30f6e8ca3.tar.gz barebox-3b0a637921919bff1dfda6c1e204c6b30f6e8ca3.tar.xz |
fs: use bus_for_each_driver
Instead of using for_each_driver and testing for the bus type.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/fs.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -1269,10 +1269,7 @@ static const char *detect_fs(const char *filename) if (type == filetype_unknown) return NULL; - for_each_driver(drv) { - if (drv->bus != &fs_bus) - continue; - + bus_for_each_driver(&fs_bus, drv) { fdrv = drv_to_fs_driver(drv); if (type == fdrv->type) |