Mercurial > illumos > illumos-gate
comparison usr/src/lib/fm/topo/modules/common/pcibus/pcibus.c @ 11050:be69f645ce17
6894028 Some fm libraries are not lint clean
6897387 IPMI facility provider methods not registered on some platforms
6893713 Some fm cmds are not lint clean
author | Robert Johnston <Robert.Johnston@Sun.COM> |
---|---|
date | Wed, 11 Nov 2009 18:52:48 -0800 |
parents | 0c3d84a756da |
children | bcacc803343d |
comparison
equal
deleted
inserted
replaced
11049:a871ea89ffe5 | 11050:be69f645ce17 |
---|---|
88 topo_mod_dprintf(modhdl, "initializing pcibus builtin\n"); | 88 topo_mod_dprintf(modhdl, "initializing pcibus builtin\n"); |
89 | 89 |
90 if (version != PCI_ENUMR_VERS) | 90 if (version != PCI_ENUMR_VERS) |
91 return (topo_mod_seterrno(modhdl, EMOD_VER_NEW)); | 91 return (topo_mod_seterrno(modhdl, EMOD_VER_NEW)); |
92 | 92 |
93 topo_mod_register(modhdl, &Pci_info, TOPO_VERSION); | 93 if (topo_mod_register(modhdl, &Pci_info, TOPO_VERSION) != 0) { |
94 topo_mod_dprintf(modhdl, "failed to register module"); | |
95 return (-1); | |
96 } | |
94 topo_mod_dprintf(modhdl, "PCI Enumr initd\n"); | 97 topo_mod_dprintf(modhdl, "PCI Enumr initd\n"); |
95 | 98 |
96 return (0); | 99 return (0); |
97 } | 100 } |
98 | 101 |
500 topo_mod_dprintf(mod, "Found Neptune ASIC\n"); | 503 topo_mod_dprintf(mod, "Found Neptune ASIC\n"); |
501 if (topo_mod_load(mod, XAUI, TOPO_VERSION) == | 504 if (topo_mod_load(mod, XAUI, TOPO_VERSION) == |
502 NULL) { | 505 NULL) { |
503 topo_mod_dprintf(mod, "pcibus enum " | 506 topo_mod_dprintf(mod, "pcibus enum " |
504 "could not load xaui enum\n"); | 507 "could not load xaui enum\n"); |
505 topo_mod_seterrno(mod, | 508 (void) topo_mod_seterrno(mod, |
506 EMOD_PARTIAL_ENUM); | 509 EMOD_PARTIAL_ENUM); |
507 return; | 510 return; |
508 } else { | 511 } else { |
509 if (topo_node_range_create(mod, fn, | 512 if (topo_node_range_create(mod, fn, |
510 XAUI, 0, 1) < 0) { | 513 XAUI, 0, 1) < 0) { |