Changeset df747b9c in mainline for uspace/srv/drivers/pciintel/pci.c
- Timestamp:
- 2010-04-23T11:30:25Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5af21c5
- Parents:
- a78fa2a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/drivers/pciintel/pci.c
ra78fa2a rdf747b9c 85 85 86 86 87 static boolpci_add_device(device_t *dev);87 static int pci_add_device(device_t *dev); 88 88 89 89 /** The pci bus driver's standard operations. … … 402 402 create_pci_match_ids(dev); 403 403 404 if ( !child_device_register(dev, parent)) {404 if (EOK != child_device_register(dev, parent)) { 405 405 pci_clean_resource_list(dev); 406 406 clean_match_ids(&dev->match_ids); … … 433 433 } 434 434 435 static boolpci_add_device(device_t *dev)435 static int pci_add_device(device_t *dev) 436 436 { 437 437 printf(NAME ": pci_add_device\n"); … … 440 440 if (NULL == bus_data) { 441 441 printf(NAME ": pci_add_device allocation failed.\n"); 442 return false;442 return ENOMEM; 443 443 } 444 444 … … 447 447 printf(NAME ": pci_add_device failed to connect to the parent's driver.\n"); 448 448 delete_pci_bus_data(bus_data); 449 return false;449 return EPARTY; 450 450 } 451 451 … … 456 456 delete_pci_bus_data(bus_data); 457 457 ipc_hangup(dev->parent_phone); 458 return false;458 return EPARTY; 459 459 } 460 460 … … 472 472 ipc_hangup(dev->parent_phone); 473 473 clean_hw_resource_list(&hw_resources); 474 return false;474 return EADDRNOTAVAIL; 475 475 } 476 476 bus_data->conf_data_port = (char *)bus_data->conf_addr_port + 4; … … 484 484 clean_hw_resource_list(&hw_resources); 485 485 486 return true;486 return EOK; 487 487 } 488 488
Note:
See TracChangeset
for help on using the changeset viewer.