Kaynağa Gözat

[PATCH] pci: remove deprecates

Replace pci_find_device() with more safer pci_get_device().

Signed-off-by: Amit Gud <gud@eth.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Amit Gud 20 yıl önce
ebeveyn
işleme
881a8c120a
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      drivers/char/moxa.c

+ 1 - 1
drivers/char/moxa.c

@@ -451,7 +451,7 @@ static int __init moxa_init(void)
 		int n = (sizeof(moxa_pcibrds) / sizeof(moxa_pcibrds[0])) - 1;
 		int n = (sizeof(moxa_pcibrds) / sizeof(moxa_pcibrds[0])) - 1;
 		i = 0;
 		i = 0;
 		while (i < n) {
 		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))
 				if (pci_enable_device(p))
 					continue;
 					continue;