Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256795
b: refs/heads/master
c: 64099d9
h: refs/heads/master
i:
  256793: f712e1d
  256791: 3cbf82f
v: v3
  • Loading branch information
Benjamin Herrenschmidt committed Jun 7, 2011
1 parent 4f11e60 commit faa5919
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 36 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: 3d5fe5a65af9c0b609d6e26b8d63fe5923c4e512
refs/heads/master: 64099d981c9916ec4a485b3ffbb89fa877fc595f
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_device_to_OF_node(struct pci_dev *dev)
{
return dev->dev.of_node;
}

static inline struct device_node *pci_bus_to_OF_node(struct pci_bus *bus)
{
return bus->dev.of_node;
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_device_to_OF_node(struct pci_dev *dev)
{
return dev->dev.of_node;
}

static inline struct device_node *pci_bus_to_OF_node(struct pci_bus *bus)
{
return bus->dev.of_node;
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/sparc/include/asm/pci_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ static inline void pci_dma_burst_advice(struct pci_dev *pdev,
}
#endif

struct device_node;
extern struct device_node *pci_device_to_OF_node(struct pci_dev *pdev);

#endif /* __KERNEL__ */

/* generic pci stuff */
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/sparc/include/asm/pci_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
return PCI_IRQ_NONE;
}

struct device_node;
extern struct device_node *pci_device_to_OF_node(struct pci_dev *pdev);

#define HAVE_ARCH_PCI_RESOURCE_TO_USER
extern void pci_resource_to_user(const struct pci_dev *dev, int bar,
const struct resource *rsrc,
Expand Down
6 changes: 0 additions & 6 deletions trunk/arch/sparc/kernel/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1021,12 +1021,6 @@ void arch_teardown_msi_irq(unsigned int irq)
}
#endif /* !(CONFIG_PCI_MSI) */

struct device_node *pci_device_to_OF_node(struct pci_dev *pdev)
{
return pdev->dev.of_node;
}
EXPORT_SYMBOL(pci_device_to_OF_node);

static void ali_sound_dma_hack(struct pci_dev *pdev, int set_bit)
{
struct pci_dev *ali_isa_bridge;
Expand Down
8 changes: 0 additions & 8 deletions trunk/arch/sparc/kernel/pcic.c
Original file line number Diff line number Diff line change
Expand Up @@ -885,14 +885,6 @@ int pcibios_assign_resource(struct pci_dev *pdev, int resource)
return -ENXIO;
}

struct device_node *pci_device_to_OF_node(struct pci_dev *pdev)
{
struct pcidev_cookie *pc = pdev->sysdata;

return pc->prom_node;
}
EXPORT_SYMBOL(pci_device_to_OF_node);

/*
* This probably belongs here rather than ioport.c because
* we do not want this crud linked into SBus kernels.
Expand Down
5 changes: 0 additions & 5 deletions trunk/arch/x86/include/asm/prom.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ 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_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 pci_device_to_OF_node(bus->self);
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 @@ -1600,6 +1600,11 @@ extern void pci_release_bus_of_node(struct pci_bus *bus);
/* Arch may override this (weak) */
extern struct device_node * __weak pcibios_get_phb_of_node(struct pci_bus *bus);

static inline struct device_node *pci_device_to_OF_node(struct pci_dev *pdev)
{
return pdev ? pdev->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 faa5919

Please sign in to comment.