mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
ALSA: asihpi: fix missing pci_disable_device()
[ Upstream commit9d86515c3d] pci_disable_device() need be called while module exiting, switch to use pcim_enable(), pci_disable_device() will be called in pcim_release(). Fixes:3285ea10e9("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
5458bc0f9d
commit
ae66695aa1
@@ -361,7 +361,7 @@ int asihpi_adapter_probe(struct pci_dev *pci_dev,
|
|||||||
pci_dev->device, pci_dev->subsystem_vendor,
|
pci_dev->device, pci_dev->subsystem_vendor,
|
||||||
pci_dev->subsystem_device, pci_dev->devfn);
|
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,
|
dev_err(&pci_dev->dev,
|
||||||
"pci_enable_device failed, disabling device\n");
|
"pci_enable_device failed, disabling device\n");
|
||||||
return -EIO;
|
return -EIO;
|
||||||
|
|||||||
Reference in New Issue
Block a user