Messages in this thread Patch in this message | | | Date | Wed, 23 Dec 2009 19:54:49 +1100 | Subject | [patch 1/7] [patch] DT3155: Use pci_get_device | From | Simon Horman <> |
| |
The use of pci_find_device() is deprecated.
Signed-off-by: Simon Horman <horms@verge.net.au>
---
Compile tested only.
Alternatively, if pci_find_device() really needs to be used then this code needs to depend on PCI_LEGACY.
Index: gregkh-2.6/drivers/staging/dt3155/dt3155_drv.c =================================================================== --- gregkh-2.6.orig/drivers/staging/dt3155/dt3155_drv.c 2009-12-23 18:41:46.000000000 +1100 +++ gregkh-2.6/drivers/staging/dt3155/dt3155_drv.c 2009-12-23 18:42:29.000000000 +1100 @@ -963,7 +963,7 @@ static int find_PCI (void) unsigned long base; unsigned char irq; - while ((pci_dev = pci_find_device + while ((pci_dev = pci_get_device (DT3155_VENDORID, DT3155_DEVICEID, pci_dev)) != NULL) { pci_index ++;
| |