barebox/include/of_pci.h
Sebastian Hesselbarth 846da3d7df of: pci: import of_pci_get_devfn()
Marvell MVEBU PCIe driver requires of_pcie_get_devfn(), import it from
Linux.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-31 07:29:22 +02:00

18 lines
233 B
C

#ifndef __OF_PCI_H
#define __OF_PCI_H
#include <linux/pci.h>
#ifdef CONFIG_OF_PCI
int of_pci_get_devfn(struct device_node *np);
#else
static inline int of_pci_get_devfn(struct device_node *np)
{
return -EINVAL;
}
#endif
#endif