[PATCH 2/14] drivers/isdn/hisax/avm_pci.c: fix warning
Michael Borisov <[email protected]> Sat, 26 Jul 2008 22:44:40 +0300
| Newsgroups | gmane.linux.isdn,gmane.linux.kernel.janitors |
|---|---|
| Message-ID | <1217101480.6107.128.camel@inlin> |
This patch fixes the following compile warning: drivers/isdn/hisax/avm_pci.c: In function =E2=80=98avm_pci_setup=E2=80=99= : drivers/isdn/hisax/avm_pci.c:838: warning: =E2=80=98pci_find_device=E2=80= =99 is deprecated (declared at include/linux/pci.h:535) Signed-off-by: Michael Borisov <[email protected]> --- diff --git a/drivers/isdn/hisax/avm_pci.c b/drivers/isdn/hisax/avm_pci.= c index 7cabc5a..21e4d32 100644 --- a/drivers/isdn/hisax/avm_pci.c +++ b/drivers/isdn/hisax/avm_pci.c @@ -835,7 +835,7 @@ static struct pci_dev *dev_avm __devinitdata =3D NU= LL; =20 static int __devinit avm_pci_setup(struct IsdnCardState *cs) { - if ((dev_avm =3D pci_find_device(PCI_VENDOR_ID_AVM, + if ((dev_avm =3D pci_get_device(PCI_VENDOR_ID_AVM, PCI_DEVICE_ID_AVM_A1, dev_avm))) { =20 if (pci_enable_device(dev_avm)) -- To unsubscribe from this list: send the line "unsubscribe linux-isdn" i= n the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html