From nobody Wed Dec 17 07:27:43 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5D0711917FB; Wed, 16 Apr 2025 13:14:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744809240; cv=none; b=FZtim66VpC1MLGzBOy2IL+XTFIWiuhL1kpV9mWigSdNjCPMj9Rpm9MRqLWGLGmsny3gwR7MmTohFLVomULUe7P6pnXxIs/KPNie+2we2zkU8Lcf5CChHCleJBTfv5K1LETCp3enF3f7N9a1wkv3tDiOCx+XtvFJ3KdWOZlETVQg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744809240; c=relaxed/simple; bh=FnEMqRYiFMAV1GdMr3wF6FFhwxAv75Otz/xx5cRosXY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nKBevOKp4hazQJz7WRaehAc1aT5WXem+/shFQId/XX0WOiTmW3W/scvNepvCeuLinROKKeInff6ChguTRh8zV+VvpiaydirwUAb/0j93+MPafhQXao4Xaj1TMZkGpJKHOkrleJ660+zY+urff+Z6LLcKNll579HThAMa4ZXbPZI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=J8RlYyxJ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="J8RlYyxJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6A94C4CEE2; Wed, 16 Apr 2025 13:13:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1744809240; bh=FnEMqRYiFMAV1GdMr3wF6FFhwxAv75Otz/xx5cRosXY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J8RlYyxJxHyNEvdVYh/ReBTGkdlWaJ4JHdooH/2M06/fiYbuuCGee9ZQZBbg6Hlpi Yg1ja5L36Km/yOqra2dt1bHo+Oiak1UlRp61I2nq2gXRUcH3TpaTLeyAOVqGY8y3+F vzd/Ln8Gdc01iQ4Ew9J+GEAnC5ttYn61dPurYFAgQQuXwJBJdH9ssU2tBRuT4rEzCy 62dE9maw/aPFH1igZogy/7X3DdIwBNpIqzmTP2jBoUNkX35dGRE1lsrTuvzLjYpa14 UiSrCUZu2y5XlocpwUqnt2PKpfaLwh7R73x2GVs5xEYNpeFxgc/kAgzZRMPj1ztkkL OIQlRCTtg21ow== From: Philipp Stanner To: Jaroslav Kysela , Takashi Iwai , Jaya Kumar , Clemens Ladisch , Cezary Rojewski , Liam Girdwood , Peter Ujfalusi , Bard Liao , Ranjani Sridharan , Kai Vehmanen , Pierre-Louis Bossart , Mark Brown , Daniel Baluta , Colin Ian King , Philipp Stanner , David Rhodes , liujing , Jerome Brunet , Andres Urian Florez , Oswald Buddenhagen , Thorsten Blum , Thomas Gleixner , Ingo Molnar , =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= , Charles Keepax , Andy Shevchenko Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, sound-open-firmware@alsa-project.org Subject: [PATCH 09/31] ALSA: via82: Use pure devres PCI Date: Wed, 16 Apr 2025 15:12:19 +0200 Message-ID: <20250416131241.107903-10-phasta@kernel.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250416131241.107903-1-phasta@kernel.org> References: <20250416131241.107903-1-phasta@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pci_request_regions() is a hybrid function which becomes managed if pcim_enable_device() was called before. This hybrid nature is deprecated and should not be used anymore. Replace pci_request_regions() with the always-managed function pcim_request_all_regions(). Signed-off-by: Philipp Stanner --- sound/pci/via82xx.c | 2 +- sound/pci/via82xx_modem.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/pci/via82xx.c b/sound/pci/via82xx.c index 89838b4fb118..a04dbc0a420f 100644 --- a/sound/pci/via82xx.c +++ b/sound/pci/via82xx.c @@ -2326,7 +2326,7 @@ static int snd_via82xx_create(struct snd_card *card, pci_write_config_byte(chip->pci, VIA_FUNC_ENABLE, chip->old_legacy & ~(VIA_FUNC_ENABLE_SB|VIA_FUNC_ENABLE_FM)); =20 - err =3D pci_request_regions(pci, card->driver); + err =3D pcim_request_all_regions(pci, card->driver); if (err < 0) return err; chip->port =3D pci_resource_start(pci, 0); diff --git a/sound/pci/via82xx_modem.c b/sound/pci/via82xx_modem.c index a0a49b8d1511..eef0f9ddaae0 100644 --- a/sound/pci/via82xx_modem.c +++ b/sound/pci/via82xx_modem.c @@ -1071,7 +1071,7 @@ static int snd_via82xx_create(struct snd_card *card, chip->pci =3D pci; chip->irq =3D -1; =20 - err =3D pci_request_regions(pci, card->driver); + err =3D pcim_request_all_regions(pci, card->driver); if (err < 0) return err; chip->port =3D pci_resource_start(pci, 0); --=20 2.48.1