From nobody Wed Dec 17 07:38:09 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 1ADA91AF0D0; Wed, 16 Apr 2025 13:15:20 +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=1744809321; cv=none; b=uxo7sJ4EPQ+RDPcwGokhw/w5Gkvpj/iKudVpOzZENNU/iO68CwylLSZYga4pDBJrQLwqBB+1SfyfSQw+D7t4WO81yRG2BTHPehWS20hMXuVvqymihYMU4h4MT79/Pb05oG5m1L59FvtgedrrslUAgG303PClRxAyq7IO4fKk1Mo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744809321; c=relaxed/simple; bh=DXF897aVMVQynwK1mxAmrzEFeGUvfiwvfJDNgrcBBX8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KWeOw2l7j+uVsG+d3yqJ9FudDN31Uw9t8T9KmquAwVkS5LhYcCaWIwn9ZIvuf4jUvlSbD5Qe+v1FoLvhiwfn/mVJJXmBrz6WJaGf7cwSe7RaJWhuO1CtdgLavrN8y06NTU2nOmCo9mNrA9Ts9zDgCPfNrcQZE0IbOEQHTeJc+ho= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NyJVP4PZ; 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="NyJVP4PZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 37A00C4CEE2; Wed, 16 Apr 2025 13:15:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1744809320; bh=DXF897aVMVQynwK1mxAmrzEFeGUvfiwvfJDNgrcBBX8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NyJVP4PZfi2Ive0dysGFlqLRomKjhQZjRAYeKQBgG1i8dPpoDMmUeqIRG21olngtv G+yqXJKQUWMFZh1QydC3emeaZL0R7sDp7cgZB0CjYpHBSk3KXdgXikIRTSQ5K+TXiI iShSi8Yr2fA6jgceDN/MOSR65Tr6q4xpLvnka+iNZNQABwLy0IVu9fsABcRO6APK5I opiC6bJm39sBJS2hQHTv4nNi11RTOE3jD6Z/veiLuX/zquAPdWI6YGKkFHwtMKBDHs ZBoDm22KLdN7KjRqPkORuITpeBdV+DvC2wdY9+Twg/YUmve6bmxwidSJ92Y94t8hdf b1o8rH+WyqNdw== 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 21/31] ALSA: ymfpci: Use pure devres PCI Date: Wed, 16 Apr 2025 15:12:31 +0200 Message-ID: <20250416131241.107903-22-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/ymfpci/ymfpci_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/ymfpci/ymfpci_main.c b/sound/pci/ymfpci/ymfpci_main.c index 6b8d8690b6b2..d495f53a8324 100644 --- a/sound/pci/ymfpci/ymfpci_main.c +++ b/sound/pci/ymfpci/ymfpci_main.c @@ -2307,7 +2307,7 @@ int snd_ymfpci_create(struct snd_card *card, chip->device_id =3D pci->device; chip->rev =3D pci->revision; =20 - err =3D pci_request_regions(pci, "YMFPCI"); + err =3D pcim_request_all_regions(pci, "YMFPCI"); if (err < 0) return err; =20 --=20 2.48.1