Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp11581492rwb; Fri, 25 Nov 2022 18:11:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Fn90NSJw57UVGeD5iRZtxKTLnk9dtBRZQG0NKKS6TgPMDQO3u3FgBfXKDfn8o0SFkQRAe X-Received: by 2002:a17:902:d191:b0:189:1d93:1435 with SMTP id m17-20020a170902d19100b001891d931435mr21841632plb.105.1669428696475; Fri, 25 Nov 2022 18:11:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669428696; cv=none; d=google.com; s=arc-20160816; b=bZsPHCtaxuxnRrp/T9GclAN/igvVNg6zaLyFnY2i36icygeuqciy/L/VvBUExwDeFy SLI2g6VcoKKQxE5KKdOe65poZ5K8NOU43MjYY6q42UYE86o81881rp54Tb66gzaWFDrq PDRIG40Ad2nr3+pAMxlfLErGx2JmzQCm7h/QfyLAOaR3kOcgvEH1qZoQz0N0mTwQNaPw 9mVaWypZ8IjFKWY4lqGTgZTkshOR7uU2tqhjj5vyJeoLxl47lU2yZWov3IH0AvJVhIDV ZC3bH13a4STJrN9L/q+8Dz9H4F9/j7TkJYsaHS/A46PG2horfjc+7m1TJoYHfLbRiku3 vIKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=rAt7iSxBOyirfFaMAFIOscXrpoo3IoQHmpmyndHAZZQ=; b=ImxKqmRKiPKt8F10NWaRCR3egjjSc78ATEJ0jkKYnCGkeAfgqVXtz4zHTU7UCmARgJ M0TUBTXnq5u+Zf4pC5wSW6eLdFxRFq8GQxGCKdB4Fkq5+0NrOHNs/lbful9R8W2ey9+1 ubyKBSGFAMMmI9PRwe91Q1PTvZ78AVqnCmoS0GlDDxsIblZaMu3GQCI+iHmD21MYH9WK 5CAup46z+xSM4UrhVS1eP+KhaIL+qgFChJPheBjrgiVcN1h84fRRlIk7knYn3MpvkhP7 DqWYGVWEQs17b9cpZ9jCPtLQF3xVjeG2hwYE0brupyuL6FhSjjqMA+D9conLeSXwLQJU EIRQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gf7-20020a17090ac7c700b002190eb641d3si2876373pjb.88.2022.11.25.18.11.25; Fri, 25 Nov 2022 18:11:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230114AbiKZB1Q (ORCPT + 85 others); Fri, 25 Nov 2022 20:27:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229722AbiKZB1O (ORCPT ); Fri, 25 Nov 2022 20:27:14 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD66543878 for ; Fri, 25 Nov 2022 17:27:13 -0800 (PST) Received: from dggpemm500022.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4NJvG51fGyzmW9k; Sat, 26 Nov 2022 09:26:37 +0800 (CST) Received: from dggpemm100009.china.huawei.com (7.185.36.113) by dggpemm500022.china.huawei.com (7.185.36.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 26 Nov 2022 09:27:12 +0800 Received: from huawei.com (10.175.113.32) by dggpemm100009.china.huawei.com (7.185.36.113) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 26 Nov 2022 09:27:11 +0800 From: Liu Shixin To: Jaroslav Kysela , Takashi Iwai CC: , , Liu Shixin Subject: [PATCH] ALSA: asihpi: fix missing pci_disable_device() Date: Sat, 26 Nov 2022 10:14:29 +0800 Message-ID: <20221126021429.3029562-1-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.32] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm100009.china.huawei.com (7.185.36.113) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org pci_disable_device() need be called while module exiting, switch to use pcim_enable(), pci_disable_device() will be called in pcim_release(). Fixes: 3285ea10e9b0 ("ALSA: asihpi - Interrelated HPI tidy up.") Signed-off-by: Liu Shixin --- sound/pci/asihpi/hpioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/asihpi/hpioctl.c b/sound/pci/asihpi/hpioctl.c index bb31b7fe867d..477a5b4b50bc 100644 --- a/sound/pci/asihpi/hpioctl.c +++ b/sound/pci/asihpi/hpioctl.c @@ -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; -- 2.25.1