提交 3449248c 编写于 作者: R Randy Dunlap 提交者: Jesse Barnes

PCI: fix tlan build when CONFIG_PCI is not enabled

When CONFIG_PCI is not enabled, tlan.c has a build error:
drivers/net/tlan.c:503: error: implicit declaration of function 'pci_wake_from_d3'

so add an inline function stub for this function to pci.h when
PCI is not enabled, similar to other stubbed PCI functions.
Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
Acked-by: NDavid S. Miller <davem@davemloft.net>
Acked-by: NSakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
上级 b99af4b0
......@@ -1191,6 +1191,11 @@ static inline int pci_set_power_state(struct pci_dev *dev, pci_power_t state)
return 0;
}
static inline int pci_wake_from_d3(struct pci_dev *dev, bool enable)
{
return 0;
}
static inline pci_power_t pci_choose_state(struct pci_dev *dev,
pm_message_t state)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册