Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351146
b: refs/heads/master
c: 352af7d
h: refs/heads/master
v: v3
  • Loading branch information
Thierry Reding authored and Russell King committed Feb 16, 2013
1 parent 4004b68 commit caefa08
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 276fd3c5f8a21f9d7d398383b818d5d0ac81db23
refs/heads/master: 352af7d4dd90bac3640ad2383e4e9f332d3a4537
1 change: 1 addition & 0 deletions trunk/arch/arm/include/asm/mach/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ struct hw_pci {
#endif
struct pci_ops *ops;
int nr_controllers;
void **private_data;
int (*setup)(int nr, struct pci_sys_data *);
struct pci_bus *(*scan)(int nr, struct pci_sys_data *);
void (*preinit)(void);
Expand Down
3 changes: 3 additions & 0 deletions trunk/arch/arm/kernel/bios32.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,9 @@ static void pcibios_init_hw(struct hw_pci *hw, struct list_head *head)
sys->map_irq = hw->map_irq;
INIT_LIST_HEAD(&sys->resources);

if (hw->private_data)
sys->private_data = hw->private_data[nr];

ret = hw->setup(nr, sys);

if (ret > 0) {
Expand Down

0 comments on commit caefa08

Please sign in to comment.