Commit 7338a0a7 authored by Hanna V. Linder's avatar Hanna V. Linder Committed by Greg Kroah-Hartman

[PATCH] pci_iommu.c: replace pci_find_device with pci_get_device

As pci_find_device is going away I've replaced it with pci_get_device.
Signed-off-by: default avatarHanna Linder <hannal@us.ibm.com>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent d719a896
...@@ -814,7 +814,7 @@ static void ali_sound_dma_hack(struct pci_dev *pdev, int set_bit) ...@@ -814,7 +814,7 @@ static void ali_sound_dma_hack(struct pci_dev *pdev, int set_bit)
/* ALI sound chips generate 31-bits of DMA, a special register /* ALI sound chips generate 31-bits of DMA, a special register
* determines what bit 31 is emitted as. * 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, PCI_DEVICE_ID_AL_M1533,
NULL); NULL);
...@@ -824,6 +824,7 @@ static void ali_sound_dma_hack(struct pci_dev *pdev, int set_bit) ...@@ -824,6 +824,7 @@ static void ali_sound_dma_hack(struct pci_dev *pdev, int set_bit)
else else
val &= ~0x01; val &= ~0x01;
pci_write_config_byte(ali_isa_bridge, 0x7e, val); 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) int pci_dma_supported(struct pci_dev *pdev, u64 device_mask)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment