forgot this one
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13537 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -315,14 +315,21 @@ int32 int_thread(void *data)
|
|||||||
status_t
|
status_t
|
||||||
init_hardware(void)
|
init_hardware(void)
|
||||||
{
|
{
|
||||||
|
status_t err = ENODEV;
|
||||||
LOG_CREATE();
|
LOG_CREATE();
|
||||||
|
|
||||||
|
if (get_module(B_PCI_MODULE_NAME, (module_info **)&pci))
|
||||||
|
return ENOSYS;
|
||||||
|
|
||||||
if (B_OK == probe_device()) {
|
if (B_OK == probe_device()) {
|
||||||
PRINT(("ALL YOUR BASE ARE BELONG TO US\n"));
|
PRINT(("ALL YOUR BASE ARE BELONG TO US\n"));
|
||||||
return B_OK;
|
err = B_OK;
|
||||||
} else {
|
} else {
|
||||||
LOG(("hardware not found\n"));
|
LOG(("hardware not found\n"));
|
||||||
return B_ERROR;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
put_module(B_PCI_MODULE_NAME);
|
||||||
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user