mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hanna Linder <hannal@us.ibm.com>
To: lkml <linux-kernel@vger.kernel.org>,
	kernel-janitors <kernel-janitors@lists.osdl.org>
Cc: greg@kroah.com, hannal@us.ibm.com, davem@davemloft.net,
	ecd@skynet.be, jj@sunsite.ms.mff.cuni.cz, anton@samba.org
Subject: [RFT 2.6] pci_iommu.c replace pci_find_device with pci_get_device
Date: Fri, 08 Oct 2004 15:35:28 -0700	[thread overview]
Message-ID: <84740000.1097274928@w-hlinder.beaverton.ibm.com> (raw)

As pci_find_device is going away I've replaced it with pci_get_device.
If someone with a Sparc64 system could test it I would appreciate it.
Thanks.

Hanna Linder
IBM Linux Technology Center

Signed-off-by: Hanna Linder <hannal@us.ibm.com>
---
diff -Nrup linux-2.6.9-rc3-mm3cln/arch/sparc64/kernel/pci_iommu.c linux-2.6.9-rc3-mm3patch3/arch/sparc64/kernel/pci_iommu.c
--- linux-2.6.9-rc3-mm3cln/arch/sparc64/kernel/pci_iommu.c	2004-09-29 20:03:56.000000000 -0700
+++ linux-2.6.9-rc3-mm3patch3/arch/sparc64/kernel/pci_iommu.c	2004-10-08 15:23:37.585502792 -0700
@@ -814,7 +814,7 @@ static void ali_sound_dma_hack(struct pc
 	/* ALI sound chips generate 31-bits of DMA, a special register
 	 * determines what bit 31 is emitted as.
 	 */
-	ali_isa_bridge = pci_find_device(PCI_VENDOR_ID_AL,
+	ali_isa_bridge = pci_get_device(PCI_VENDOR_ID_AL,
 					 PCI_DEVICE_ID_AL_M1533,
 					 NULL);
 
@@ -824,6 +824,7 @@ static void ali_sound_dma_hack(struct pc
 	else
 		val &= ~0x01;
 	pci_write_config_byte(ali_isa_bridge, 0x7e, val);
+	pci_dev_put(ali_isa_bridge);
 }
 
 int pci_dma_supported(struct pci_dev *pdev, u64 device_mask)


                 reply	other threads:[~2004-10-08 22:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=84740000.1097274928@w-hlinder.beaverton.ibm.com \
    --to=hannal@us.ibm.com \
    --cc=anton@samba.org \
    --cc=davem@davemloft.net \
    --cc=ecd@skynet.be \
    --cc=greg@kroah.com \
    --cc=jj@sunsite.ms.mff.cuni.cz \
    --cc=kernel-janitors@lists.osdl.org \
    --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®