9
0
Fork 0

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>
This commit is contained in:
Sascha Hauer 2013-09-27 23:00:45 +02:00
parent 00d996c942
commit 3b0a637921
1 changed files with 1 additions and 4 deletions

View File

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