Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174829
b: refs/heads/master
c: d013598
h: refs/heads/master
i:
  174827: bc78683
v: v3
  • Loading branch information
Kenji Kaneshige authored and Jesse Barnes committed Dec 4, 2009
1 parent 418dcf6 commit c85c779
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9e5d0b16dada536dfe2f1e893b6ad0225ff8a2c9
refs/heads/master: d013598d9a46befebdfd37195829ce411e4878ea
6 changes: 4 additions & 2 deletions trunk/drivers/pci/pcie/portdrv_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,15 +297,17 @@ int pcie_port_device_register(struct pci_dev *dev)
int status, capabilities, irq_mode, i, nr_serv;
int vectors[PCIE_PORT_DEVICE_MAXSERVICES];

capabilities = get_port_device_capability(dev);
if (!capabilities)
return -ENODEV;

port_data = kzalloc(sizeof(*port_data), GFP_KERNEL);
if (!port_data)
return -ENOMEM;
pci_set_drvdata(dev, port_data);

port_data->port_type = dev->pcie_type;

capabilities = get_port_device_capability(dev);

irq_mode = assign_interrupt_mode(dev, vectors, capabilities);
if (irq_mode == PCIE_PORT_NO_IRQ) {
/*
Expand Down

0 comments on commit c85c779

Please sign in to comment.