[PATCH 1/14] drivers/isdn/hisax/telespci.c: fix warning
Michael Borisov <[email protected]> Sat, 26 Jul 2008 22:44:34 +0300
| Newsgroups | gmane.linux.isdn,gmane.linux.kernel.janitors |
|---|---|
| Message-ID | <1217101474.6107.127.camel@inlin> |
This patch fixes the following compile warning: drivers/isdn/hisax/telespci.c: In function =E2=80=98setup_telespci=E2=80= =99: drivers/isdn/hisax/telespci.c:303: 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/telespci.c b/drivers/isdn/hisax/telespci.c index 28b08de..9ed0862 100644 --- a/drivers/isdn/hisax/telespci.c +++ b/drivers/isdn/hisax/telespci.c @@ -300,7 +300,8 @@ setup_telespci(struct IsdnCard *card) if (cs->typ !=3D ISDN_CTYPE_TELESPCI) return (0); =20 - if ((dev_tel =3D pci_find_device (PCI_VENDOR_ID_ZORAN, PCI_DEVICE_ID_ZORAN_36120, dev_tel))) { + if ((dev_tel =3D pci_get_device(PCI_VENDOR_ID_ZORAN, + PCI_DEVICE_ID_ZORAN_36120, dev_tel))) { if (pci_enable_device(dev_tel)) return(0); cs->irq =3D dev_tel->irq; -- 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