Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362798
b: refs/heads/master
c: af0a8a8
h: refs/heads/master
v: v3
  • Loading branch information
Sebastian Ott authored and Martin Schwidefsky committed Apr 17, 2013
1 parent 8a7f92a commit 99d7ee1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 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: cb65a669f62ecca123cf4f6998903ee628c59caf
refs/heads/master: af0a8a8453f7c7b3497c9fecc053897690e00695
14 changes: 11 additions & 3 deletions trunk/arch/s390/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,17 @@ static void zpci_free_iomap(struct zpci_dev *zdev, int entry)
spin_unlock(&zpci_iomap_lock);
}

int pcibios_add_device(struct pci_dev *pdev)
{
struct zpci_dev *zdev = get_zdev(pdev);

zpci_debug_init_device(zdev);
zpci_fmb_enable_device(zdev);
zpci_map_resources(zdev);

return 0;
}

static int zpci_create_device_bus(struct zpci_dev *zdev)
{
struct resource *res;
Expand Down Expand Up @@ -1019,9 +1030,6 @@ int zpci_scan_device(struct zpci_dev *zdev)
goto out;
}

zpci_debug_init_device(zdev);
zpci_fmb_enable_device(zdev);
zpci_map_resources(zdev);
pci_bus_add_devices(zdev->bus);

/* now that pdev was added to the bus mark it as used */
Expand Down

0 comments on commit 99d7ee1

Please sign in to comment.