Only put B_PCI_MODULE_NAME if we succeeded in getting the module. Fixes booting on non-PCI systems (i.e. QEMU with -M isapc).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23819 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -24,9 +24,10 @@ init_hardware(void)
|
||||
return B_OK;
|
||||
}
|
||||
}
|
||||
|
||||
put_module(B_PCI_MODULE_NAME);
|
||||
}
|
||||
|
||||
put_module(B_PCI_MODULE_NAME);
|
||||
pci = NULL;
|
||||
|
||||
return ENODEV;
|
||||
|
||||
Reference in New Issue
Block a user