[PATCH 4/14] drivers/isdn/hisax/diva.c: fix warnings
Michael Borisov <[email protected]> Sat, 26 Jul 2008 22:44:50 +0300
| Newsgroups | gmane.linux.isdn,gmane.linux.kernel.janitors |
|---|---|
| Message-ID | <1217101490.6107.130.camel@inlin> |
This patch fixes the following compile warnings: drivers/isdn/hisax/diva.c: In function =E2=80=98setup_diva_pci=E2=80=99= : drivers/isdn/hisax/diva.c:1162: warning: =E2=80=98pci_find_device=E2=80= =99 is deprecated (declared at include/linux/pci.h:535) drivers/isdn/hisax/diva.c:1169: warning: =E2=80=98pci_find_device=E2=80= =99 is deprecated (declared at include/linux/pci.h:535) drivers/isdn/hisax/diva.c:1176: warning: =E2=80=98pci_find_device=E2=80= =99 is deprecated (declared at include/linux/pci.h:535) drivers/isdn/hisax/diva.c:1186: 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/diva.c b/drivers/isdn/hisax/diva.c index 018bd29..6fe012d 100644 --- a/drivers/isdn/hisax/diva.c +++ b/drivers/isdn/hisax/diva.c @@ -1159,21 +1159,21 @@ static int __devinit setup_diva_pci(struct IsdnCard *card) struct IsdnCardState *cs =3D card->cs; =20 cs->subtyp =3D 0; - if ((dev_diva =3D pci_find_device(PCI_VENDOR_ID_EICON, + if ((dev_diva =3D pci_get_device(PCI_VENDOR_ID_EICON, PCI_DEVICE_ID_EICON_DIVA20, dev_diva))) { if (pci_enable_device(dev_diva)) return(0); cs->subtyp =3D DIVA_PCI; cs->irq =3D dev_diva->irq; cs->hw.diva.cfg_reg =3D pci_resource_start(dev_diva, 2); - } else if ((dev_diva_u =3D pci_find_device(PCI_VENDOR_ID_EICON, + } else if ((dev_diva_u =3D pci_get_device(PCI_VENDOR_ID_EICON, PCI_DEVICE_ID_EICON_DIVA20_U, dev_diva_u))) { if (pci_enable_device(dev_diva_u)) return(0); cs->subtyp =3D DIVA_PCI; cs->irq =3D dev_diva_u->irq; cs->hw.diva.cfg_reg =3D pci_resource_start(dev_diva_u, 2); - } else if ((dev_diva201 =3D pci_find_device(PCI_VENDOR_ID_EICON, + } else if ((dev_diva201 =3D pci_get_device(PCI_VENDOR_ID_EICON, PCI_DEVICE_ID_EICON_DIVA201, dev_diva201))) { if (pci_enable_device(dev_diva201)) return(0); @@ -1183,7 +1183,7 @@ static int __devinit setup_diva_pci(struct IsdnCard *card) (ulong) ioremap(pci_resource_start(dev_diva201, 0), 4096); cs->hw.diva.cfg_reg =3D (ulong) ioremap(pci_resource_start(dev_diva201, 1), 4096); - } else if ((dev_diva202 =3D pci_find_device(PCI_VENDOR_ID_EICON, + } else if ((dev_diva202 =3D pci_get_device(PCI_VENDOR_ID_EICON, PCI_DEVICE_ID_EICON_DIVA202, dev_diva202))) { if (pci_enable_device(dev_diva202)) return(0); -- 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