Calmed down the soon to be removed driver loader (to be replaced by a better

version in devfs directly).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9086 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-09-28 03:42:07 +00:00
parent da63fa920a
commit 410c1c159f

View File

@ -150,12 +150,9 @@ dev_load_dev_module(const char *name, const char *dirpath)
devfs_paths = publish_devices();
for (; *devfs_paths; devfs_paths++) {
device_hooks *hooks = find_device(*devfs_paths);
if (hooks) {
dprintf("DEV: %s: publishing %s with hooks %p\n",
name, *devfs_paths, hooks);
if (devfs_publish_device(*devfs_paths, NULL, hooks) == 0)
keep_loaded = true;
}
if (hooks && devfs_publish_device(*devfs_paths, NULL, hooks) == 0)
keep_loaded = true;
}
/* If we've managed to publish at least one of the device entry