提交 881a8c12 编写于 作者: A Amit Gud 提交者: Greg Kroah-Hartman

[PATCH] pci: remove deprecates

Replace pci_find_device() with more safer pci_get_device().
Signed-off-by: NAmit Gud <gud@eth.net>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 120bb424
......@@ -451,7 +451,7 @@ static int __init moxa_init(void)
int n = (sizeof(moxa_pcibrds) / sizeof(moxa_pcibrds[0])) - 1;
i = 0;
while (i < n) {
while ((p = pci_find_device(moxa_pcibrds[i].vendor, moxa_pcibrds[i].device, p))!=NULL)
while ((p = pci_get_device(moxa_pcibrds[i].vendor, moxa_pcibrds[i].device, p))!=NULL)
{
if (pci_enable_device(p))
continue;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册