diff options
author | Jiri Slaby <xslaby@fi.muni.cz> | 2005-09-07 08:28:33 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2005-09-12 04:47:08 -0400 |
commit | 0dd119f703d50759f0835f342e385f82cbf8b89e (patch) | |
tree | d2b5805f5ae93b44cab1603b9e80fbf163048d8f /sound/pci/via82xx.c | |
parent | 8cdfd2519c6c9a1e6057dc5970b2542b35895738 (diff) |
[ALSA] pci_find_device remove
Memalloc module,CS46xx driver,VIA82xx driver,ALI5451 driver
au88x0 driver
Replace pci_find_device() with pci_get_device() and pci_dev_put().
Signed-off-by: Jiri Slaby <xslaby@fi.muni.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/via82xx.c')
-rw-r--r-- | sound/pci/via82xx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pci/via82xx.c b/sound/pci/via82xx.c index c7bddfb9fb6d..cfd2c9cc9b37 100644 --- a/sound/pci/via82xx.c +++ b/sound/pci/via82xx.c | |||
@@ -1927,11 +1927,12 @@ static int snd_via82xx_chip_init(via82xx_t *chip) | |||
1927 | * DXS channels don't work properly with VRA if MC97 is disabled. | 1927 | * DXS channels don't work properly with VRA if MC97 is disabled. |
1928 | */ | 1928 | */ |
1929 | struct pci_dev *pci; | 1929 | struct pci_dev *pci; |
1930 | pci = pci_find_device(0x1106, 0x3068, NULL); /* MC97 */ | 1930 | pci = pci_get_device(0x1106, 0x3068, NULL); /* MC97 */ |
1931 | if (pci) { | 1931 | if (pci) { |
1932 | unsigned char data; | 1932 | unsigned char data; |
1933 | pci_read_config_byte(pci, 0x44, &data); | 1933 | pci_read_config_byte(pci, 0x44, &data); |
1934 | pci_write_config_byte(pci, 0x44, data | 0x40); | 1934 | pci_write_config_byte(pci, 0x44, data | 0x40); |
1935 | pci_dev_put(pci); | ||
1935 | } | 1936 | } |
1936 | } | 1937 | } |
1937 | 1938 | ||