From mboxrd@z Thu Jan 1 00:00:00 1970 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 6042726B09A; Wed, 23 Apr 2025 07:56:28 +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=1745394989; cv=none; b=Dj+0LPKiKnmWjjEieNUWTcH5fD+jWKmojA0MzeOSM0E4jerC7ALiOckn+3AYbKI5sMACcG3Q1XKd7d5hS+6VticH5JGm5hBgjiSCNEpg/YvdnYkvzQwsA1LRPWGoR1Ng94n1njerc0rrzKDtpbp0UgrGtUvyW2DUan4W6dON2Q0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745394989; c=relaxed/simple; bh=IWfuvOEywoyLY/asNuZKj9Ee0ljQP2WmlWtqjK+EH7A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IhjEMSyAAfEHwEbqbpODVMPzDMesz6DACaUO/uEy4lXkU5T7ekbdPegr/K6f85f5n0lKUYhQh+BMep/Bn49s6g1eide9lGaG8/JtbOhepG76UocDpnxijuw1IKKQMdAc+HGNginnYqUI1fHYEeyYCUyRFqr5ScPT15nk2E0+h8Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Aa01bk9k; 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="Aa01bk9k" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFF09C4CEE2; Wed, 23 Apr 2025 07:56:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1745394988; bh=IWfuvOEywoyLY/asNuZKj9Ee0ljQP2WmlWtqjK+EH7A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Aa01bk9k2Fud2hguelzV8d0YHQ8iihOP+R/yoUz8s9yOgjCoq3PmJhVQOlDYOeS8E QgHhbvItMC3TpvjQouYGJY50zmo2Moe39XGHKZKdgUVPZ6MuwurCY+rmO/KxQwRKcd kTXM3d1IhEZvCjkSbMnXnx+YBvhjitLwvqB2mWrB5BAqw6KS64euBwB8SV797Z4imL LzyN1jkCq6+NoU0z8wwbqKxqBfEZRwSC6xDL8mBoN9WHVXN/eWUcUtHOoK+k1hECff sODyit0LJn4LPFHpFya86q7FPG/tJEfym/gJ7OovKtD2nT0ws8vGJEhqnq8XAaQ3lJ IGUObSXxs7AnQ== From: Philipp Stanner To: Jaroslav Kysela , Takashi Iwai , Jaya Kumar , Clemens Ladisch , Colin Ian King , Philipp Stanner , Andy Shevchenko , Jerome Brunet , Mark Brown , liujing , Andres Urian Florez , Oswald Buddenhagen , Thorsten Blum , David Rhodes , Ingo Molnar , Thomas Gleixner Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 26/28] ALSA: ca0106: Use pure devres PCI Date: Wed, 23 Apr 2025 09:53:44 +0200 Message-ID: <20250423075346.45907-27-phasta@kernel.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250423075346.45907-1-phasta@kernel.org> References: <20250423075346.45907-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: 8bit 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 Reviewed-by: Andy Shevchenko --- sound/pci/ca0106/ca0106_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/ca0106/ca0106_main.c b/sound/pci/ca0106/ca0106_main.c index cf1bac7a435f..7c7119cad63c 100644 --- a/sound/pci/ca0106/ca0106_main.c +++ b/sound/pci/ca0106/ca0106_main.c @@ -1593,7 +1593,7 @@ static int snd_ca0106_create(int dev, struct snd_card *card, spin_lock_init(&chip->emu_lock); - err = pci_request_regions(pci, "snd_ca0106"); + err = pcim_request_all_regions(pci, "snd_ca0106"); if (err < 0) return err; chip->port = pci_resource_start(pci, 0); -- 2.48.1