File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
arch/powerpc/platforms/pseries Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -164,12 +164,12 @@ static int check_req_msix(struct pci_dev *pdev, int nvec)
164
164
165
165
/* Quota calculation */
166
166
167
- static struct device_node * find_pe_total_msi (struct pci_dev * dev , int * total )
167
+ static struct device_node * __find_pe_total_msi (struct device_node * node , int * total )
168
168
{
169
169
struct device_node * dn ;
170
170
const __be32 * p ;
171
171
172
- dn = of_node_get (pci_device_to_OF_node ( dev ) );
172
+ dn = of_node_get (node );
173
173
while (dn ) {
174
174
p = of_get_property (dn , "ibm,pe-total-#msi" , NULL );
175
175
if (p ) {
@@ -185,6 +185,11 @@ static struct device_node *find_pe_total_msi(struct pci_dev *dev, int *total)
185
185
return NULL ;
186
186
}
187
187
188
+ static struct device_node * find_pe_total_msi (struct pci_dev * dev , int * total )
189
+ {
190
+ return __find_pe_total_msi (pci_device_to_OF_node (dev ), total );
191
+ }
192
+
188
193
static struct device_node * find_pe_dn (struct pci_dev * dev , int * total )
189
194
{
190
195
struct device_node * dn ;
You can’t perform that action at this time.
0 commit comments