mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Udo van den Heuvel <udovdh@xs4all.nl>
To: LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH] w6692: replace deprecated pci_find_device
Date: Sun, 20 Apr 2008 12:04:10 +0200	[thread overview]
Message-ID: <480B151A.2040601@xs4all.nl> (raw)

[-- Attachment #1: Type: text/plain, Size: 269 bytes --]

Hello,

Found this is still necessary for 2.6.25 for the w6692 hisax isdn cards.
Maybe someone has already prepared a patch?
If not you could use this one.


1. replace deprecated pci_find_device

Signed-off-by: Udo van den Heuvel <udovdh@xs4all.nl>

Kind regards,
Udo

[-- Attachment #2: w6692.patch --]
[-- Type: text/x-patch, Size: 409 bytes --]

--- a/drivers/isdn/hisax/w6692.c	2008-04-20 11:57:26.000000000 +0200
+++ b/drivers/isdn/hisax/w6692.c	2008-04-20 11:57:48.000000000 +0200
@@ -1011,7 +1011,7 @@
 		return (0);
 
 	while (id_list[id_idx].vendor_id) {
-		dev_w6692 = pci_find_device(id_list[id_idx].vendor_id,
+		dev_w6692 = pci_get_device(id_list[id_idx].vendor_id,
 					    id_list[id_idx].device_id,
 					    dev_w6692);
 		if (dev_w6692) {

             reply	other threads:[~2008-04-20 10:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-20 10:04 Udo van den Heuvel [this message]
2008-04-20  9:41 ` Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=480B151A.2040601@xs4all.nl \
    --to=udovdh@xs4all.nl \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®