Skip to content

Commit

Permalink
ALSA: asihpi: fix missing pci_disable_device()
Browse files Browse the repository at this point in the history
[ Upstream commit 9d86515 ]

pci_disable_device() need be called while module exiting, switch to use
pcim_enable(), pci_disable_device() will be called in pcim_release().

Fixes: 3285ea1 ("ALSA: asihpi - Interrelated HPI tidy up.")
Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Link: https://lore.kernel.org/r/20221126021429.3029562-1-liushixin2@huawei.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Liu Shixin authored and gregkh committed Dec 31, 2022
1 parent 6f3d567 commit 98dbd13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/asihpi/hpioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ int asihpi_adapter_probe(struct pci_dev *pci_dev,
pci_dev->device, pci_dev->subsystem_vendor,
pci_dev->subsystem_device, pci_dev->devfn);

if (pci_enable_device(pci_dev) < 0) {
if (pcim_enable_device(pci_dev) < 0) {
dev_err(&pci_dev->dev,
"pci_enable_device failed, disabling device\n");
return -EIO;
Expand Down

0 comments on commit 98dbd13

Please sign in to comment.