Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256796
b: refs/heads/master
c: ef3b4f8
h: refs/heads/master
v: v3
  • Loading branch information
Benjamin Herrenschmidt committed Jun 7, 2011
1 parent faa5919 commit dc9f432
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 17 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: 64099d981c9916ec4a485b3ffbb89fa877fc595f
refs/heads/master: ef3b4f8cc20e80c767e47b848fb7512770ab80d7
5 changes: 0 additions & 5 deletions trunk/arch/microblaze/include/asm/pci-bridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,6 @@ struct pci_controller {
};

#ifdef CONFIG_PCI
static inline struct device_node *pci_bus_to_OF_node(struct pci_bus *bus)
{
return bus->dev.of_node;
}

static inline struct pci_controller *pci_bus_to_host(const struct pci_bus *bus)
{
return bus->sysdata;
Expand Down
5 changes: 0 additions & 5 deletions trunk/arch/powerpc/include/asm/pci-bridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,6 @@ static inline struct pci_controller *pci_bus_to_host(const struct pci_bus *bus)
return bus->sysdata;
}

static inline struct device_node *pci_bus_to_OF_node(struct pci_bus *bus)
{
return bus->dev.of_node;
}

#ifndef CONFIG_PPC64

extern int pci_device_from_OF_node(struct device_node *node,
Expand Down
6 changes: 0 additions & 6 deletions trunk/arch/x86/include/asm/prom.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ extern void add_dtb(u64 data);
extern void x86_add_irq_domains(void);
void __cpuinit x86_of_pci_init(void);
void x86_dtb_init(void);

static inline struct device_node *pci_bus_to_OF_node(struct pci_bus *bus)
{
return pci_device_to_OF_node(bus->self);
}

#else
static inline void add_dtb(u64 data) { }
static inline void x86_add_irq_domains(void) { }
Expand Down
5 changes: 5 additions & 0 deletions trunk/include/linux/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -1605,6 +1605,11 @@ static inline struct device_node *pci_device_to_OF_node(struct pci_dev *pdev)
return pdev ? pdev->dev.of_node : NULL;
}

static inline struct device_node *pci_bus_to_OF_node(struct pci_bus *bus)
{
return bus ? bus->dev.of_node : NULL;
}

#else /* CONFIG_OF */
static inline void pci_set_of_node(struct pci_dev *dev) { }
static inline void pci_release_of_node(struct pci_dev *dev) { }
Expand Down

0 comments on commit dc9f432

Please sign in to comment.