Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324245
b: refs/heads/master
c: b161dab
h: refs/heads/master
i:
  324243: 95de1d6
v: v3
  • Loading branch information
Alan Cox authored and Bjorn Helgaas committed Sep 10, 2012
1 parent 261e1f1 commit 4de5085
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 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: f8ba65e8fbbc364b2a49d8713126fb345fe7ec65
refs/heads/master: b161dabc3d3004ea56a8d20b0f5ec9bf68e67180
21 changes: 1 addition & 20 deletions trunk/drivers/pci/hotplug/cpqphp_ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2890,27 +2890,8 @@ static int configure_new_function(struct controller *ctrl, struct pci_func *func
func->mem_head = mem_node;
} else
return -ENOMEM;
} else if ((temp_register & 0x0BL) == 0x04) {
/* Map memory */
base = temp_register & 0xFFFFFFF0;
base = ~base + 1;

dbg("CND: length = 0x%x\n", base);
mem_node = get_resource(&(resources->mem_head), base);

/* allocate the resource to the board */
if (mem_node) {
base = mem_node->base;

mem_node->next = func->mem_head;
func->mem_head = mem_node;
} else
return -ENOMEM;
} else if ((temp_register & 0x0BL) == 0x06) {
/* Those bits are reserved, we can't handle this */
return 1;
} else {
/* Requesting space below 1M */
/* Reserved bits or requesting space below 1M */
return NOT_ENOUGH_RESOURCES;
}

Expand Down

0 comments on commit 4de5085

Please sign in to comment.