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:
Michael Lotz
2008-02-01 21:49:28 +00:00
parent bdd8cbaf72
commit 3037952b5f
@@ -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;