pci_device can't be made static, it identifies the individual controller PCI device

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22073 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Marcus Overhagen 2007-08-26 20:28:30 +00:00
parent a53e060c17
commit 9f8f7442f3

View File

@ -18,7 +18,6 @@
#define AHCI_ID_ITEM "ahci/id" #define AHCI_ID_ITEM "ahci/id"
static device_manager_info *sDeviceManager; static device_manager_info *sDeviceManager;
static pci_device *sPCIDevice;
static status_t static status_t
@ -110,6 +109,7 @@ static status_t
ahci_register_device(device_node_handle parent) ahci_register_device(device_node_handle parent)
{ {
device_node_handle node; device_node_handle node;
pci_device *pciDevice;
status_t status; status_t status;
device_attr attrs[] = { device_attr attrs[] = {
@ -139,7 +139,7 @@ ahci_register_device(device_node_handle parent)
// initialize parent (the bus) to get the PCI interface and device // initialize parent (the bus) to get the PCI interface and device
status = sDeviceManager->init_driver(parent, NULL, status = sDeviceManager->init_driver(parent, NULL,
(driver_module_info **)&gPCI, (void **)&sPCIDevice); (driver_module_info **)&gPCI, (void **)&pciDevice);
if (status != B_OK) if (status != B_OK)
return status; return status;