forgot this one

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13537 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2005-07-07 15:25:12 +00:00
parent 3f97b4c955
commit c256c1905a

View File

@ -315,14 +315,21 @@ int32 int_thread(void *data)
status_t
init_hardware(void)
{
status_t err = ENODEV;
LOG_CREATE();
if (get_module(B_PCI_MODULE_NAME, (module_info **)&pci))
return ENOSYS;
if (B_OK == probe_device()) {
PRINT(("ALL YOUR BASE ARE BELONG TO US\n"));
return B_OK;
err = B_OK;
} else {
LOG(("hardware not found\n"));
return B_ERROR;
}
put_module(B_PCI_MODULE_NAME);
return err;
}