Skip to content

Commit

Permalink
ALSA: ymfpci: Use register macro in place of integer literal
Browse files Browse the repository at this point in the history
The macro for said register already exists, so just use it, to make the
code more readable.

Signed-off-by: Tasos Sahanidis <tasos@tasossah.com>
Link: https://lore.kernel.org/r/20230329043918.179352-1-tasos@tasossah.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Tasos Sahanidis authored and Takashi Iwai committed Mar 29, 2023
1 parent a875286 commit 2fa98a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/ymfpci/ymfpci_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2214,7 +2214,7 @@ static void snd_ymfpci_free(struct snd_card *card)

snd_ymfpci_free_gameport(chip);

pci_write_config_word(chip->pci, 0x40, chip->old_legacy_ctrl);
pci_write_config_word(chip->pci, PCIR_DSXG_LEGACY, chip->old_legacy_ctrl);

release_firmware(chip->dsp_microcode);
release_firmware(chip->controller_microcode);
Expand Down

0 comments on commit 2fa98a4

Please sign in to comment.