cpcihp_generic.c (96916090f488986a4ebb8e9ffa6a3b50881d5ccd) cpcihp_generic.c (0bf01c3c86d4b9ea279d6215420484db887f5db5)
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.

--- 148 unchanged lines hidden (view full) ---

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));
163 if(!dev || dev->hdr_type != PCI_HEADER_TYPE_BRIDGE) {
164 err("Invalid bridge device %s", bridge);
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.

--- 148 unchanged lines hidden (view full) ---

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));
163 if(!dev || dev->hdr_type != PCI_HEADER_TYPE_BRIDGE) {
164 err("Invalid bridge device %s", bridge);
165 pci_dev_put(dev);
165 return -EINVAL;
166 }
167 bus = dev->subordinate;
168 pci_dev_put(dev);
169
170 memset(&generic_hpc, 0, sizeof (struct cpci_hp_controller));
171 generic_hpc_ops.query_enum = query_enum;
172 generic_hpc.ops = &generic_hpc_ops;

--- 57 unchanged lines hidden ---
166 return -EINVAL;
167 }
168 bus = dev->subordinate;
169 pci_dev_put(dev);
170
171 memset(&generic_hpc, 0, sizeof (struct cpci_hp_controller));
172 generic_hpc_ops.query_enum = query_enum;
173 generic_hpc.ops = &generic_hpc_ops;

--- 57 unchanged lines hidden ---