cpcihp_generic.c (9a64e8e0ace51b309fdcff4b4754b3649250382a) | cpcihp_generic.c (a9d18b37e408b10854e15a918849194a4e089001) |
---|---|
1/* 2 * cpcihp_generic.c 3 * 4 * Generic port I/O CompactPCI driver 5 * 6 * Copyright 2002 SOMA Networks, Inc. 7 * Copyright 2001 Intel San Luis Obispo 8 * Copyright 2000,2001 MontaVista Software Inc. --- 140 unchanged lines hidden (view full) --- 149 status = validate_parameters(); 150 if (status) 151 return status; 152 153 r = request_region(port, 1, "#ENUM hotswap signal register"); 154 if(!r) 155 return -EBUSY; 156 | 1/* 2 * cpcihp_generic.c 3 * 4 * Generic port I/O CompactPCI driver 5 * 6 * Copyright 2002 SOMA Networks, Inc. 7 * Copyright 2001 Intel San Luis Obispo 8 * Copyright 2000,2001 MontaVista Software Inc. --- 140 unchanged lines hidden (view full) --- 149 status = validate_parameters(); 150 if (status) 151 return status; 152 153 r = request_region(port, 1, "#ENUM hotswap signal register"); 154 if(!r) 155 return -EBUSY; 156 |
157 bus = pci_find_bus(0, bridge_busnr); 158 if (!bus) { 159 err("Invalid bus number %d", bridge_busnr); 160 return -EINVAL; 161 } 162 dev = pci_get_slot(bus, PCI_DEVFN(bridge_slot, 0)); | 157 dev = pci_get_domain_bus_and_slot(0, bridge_busnr, 158 PCI_DEVFN(bridge_slot, 0)); |
163 if(!dev || dev->hdr_type != PCI_HEADER_TYPE_BRIDGE) { 164 err("Invalid bridge device %s", bridge); 165 pci_dev_put(dev); 166 return -EINVAL; 167 } 168 bus = dev->subordinate; 169 pci_dev_put(dev); 170 --- 60 unchanged lines hidden --- | 159 if(!dev || dev->hdr_type != PCI_HEADER_TYPE_BRIDGE) { 160 err("Invalid bridge device %s", bridge); 161 pci_dev_put(dev); 162 return -EINVAL; 163 } 164 bus = dev->subordinate; 165 pci_dev_put(dev); 166 --- 60 unchanged lines hidden --- |