| Message ID | 20260705194019.2565498-10-mukesh.ojha@oss.qualcomm.com (mailing list archive) |
|---|---|
| State | New |
| Headers |
Return-Path: <linux-sunxi+bounces-24184-sunxi=pue.re@lists.linux.dev>
X-Original-To: noreply@patchwork.local
Delivered-To: noreply@patchwork.local
Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
by mxe881.netcup.net (Postfix) with ESMTPS id 88A851C0790
for <noreply@patchwork.local>; Sun, 5 Jul 2026 21:42:31 +0200 (CEST)
Authentication-Results: mxe881;
dkim=pass header.d=qualcomm.com;
dkim=pass header.d=oss.qualcomm.com;
spf=pass (sender IP is 172.232.135.74)
smtp.mailfrom=linux-sunxi+bounces-24184-noreply=patchwork.local@lists.linux.dev
smtp.helo=sto.lore.kernel.org
Received-SPF: pass (mxe881: domain of lists.linux.dev designates
172.232.135.74 as permitted sender) client-ip=172.232.135.74;
envelope-from=linux-sunxi+bounces-24184-noreply=patchwork.local@lists.linux.dev;
helo=sto.lore.kernel.org;
Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org
[100.90.174.1])
by sto.lore.kernel.org (Postfix) with ESMTP id 4F4FD300A328
for <noreply@patchwork.local>; Sun, 5 Jul 2026 19:41:56 +0000 (UTC)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id D793A3A7F73;
Sun, 5 Jul 2026 19:41:34 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com
header.b="LEH8gBGq";
dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com
header.b="bpbfIuk5"
X-Original-To: linux-sunxi@lists.linux.dev
Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com
[205.220.168.131])
(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 83DB43A8388
for <linux-sunxi@lists.linux.dev>; Sun, 5 Jul 2026 19:41:32 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org;
arc=none smtp.client-ip=205.220.168.131
ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
t=1783280494; cv=none;
b=ck5/EUCFxAENcyO437HEKHOBwsOE1cZV+28DuuP7T1AD6vpxUoiS/BmKBB4Ueb1cBvpqrtw8OV82NOQDHje2ZMgu/O1idzZnGaCXzCcXWiCg/cd8QrqyrEKUGDrSfTbhMlaZIn1qv5VG82s0HTmB6Il1wkqLu8R9XOXrFxH+GpM=
ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1783280494; c=relaxed/simple;
bh=ih+WmqIWK722niQ5u1H1E9UksjJJYkGhr2LClEew4jI=;
h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:
MIME-Version:Content-Type;
b=f6ZZU92k5qDXYDRSH41P1tzL+RUKvyNwg05jXoTkGqB7EPIpputNc7lv3FDwLHjXiFjKKNvrCDB2peGxbeY1MHMsPGd5IE6LYns1SP7w48oCqfzRrxGEmoUu1CSKYmBSWWDYPVdfO7BWdBYOS5+y7HiDd+6sO1bwa7DlqnNx0Yg=
ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com;
spf=pass smtp.mailfrom=oss.qualcomm.com;
dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com
header.b=LEH8gBGq;
dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com
header.b=bpbfIuk5; arc=none smtp.client-ip=205.220.168.131
Authentication-Results: smtp.subspace.kernel.org;
dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com
Authentication-Results: smtp.subspace.kernel.org;
spf=pass smtp.mailfrom=oss.qualcomm.com
Received: from pps.filterd (m0279862.ppops.net [127.0.0.1])
by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id
665HiVJG2201609
for <linux-sunxi@lists.linux.dev>; Sun, 5 Jul 2026 19:41:32 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=
cc:content-transfer-encoding:content-type:date:from:in-reply-to
:message-id:mime-version:references:subject:to; s=qcppdkim1; bh=
keNlL6A8+I5pnaNawbDLPC3Skjo9l1+hFMmFLmQIfDI=; b=LEH8gBGqre98aZ5S
R+gXIdM13wWVBKCaHBPzQIy3YO16XtaM2Yeu1rWWcKE8Ahh7phGi5PdgSe6faHYh
NZ6WuJayU3dm2BjN9bw+VBE+ZM79Gb5/VMy0wrJmVG9PAL4oi/vWr8CCwZvut6LG
bgx8kYmZdMLIw+hO7G1imKVsWOK46Uaj/pGQFCjPL0CK5llMYjmxUaWFjupRdJAp
DojiJvRtFxtp1fbC0Y51KdHDxd4iTgLcudGv/2y9joceF7NK21EqPuFhp9vBp/DG
Mr1h6o1uwl/xqAgXXnlbwqyx/z4fTFXUP1+eeaAFH0RCQyOQiLqKrFrdvXcDdzoo
l70Dvg==
Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com
[209.85.215.198])
by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f6txek77f-1
(version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)
for <linux-sunxi@lists.linux.dev>; Sun, 05 Jul 2026 19:41:31 +0000 (GMT)
Received: by mail-pg1-f198.google.com with SMTP id
41be03b00d2f7-c88d7a75507so3701895a12.1
for <linux-sunxi@lists.linux.dev>;
Sun, 05 Jul 2026 12:41:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=oss.qualcomm.com; s=google; t=1783280491; x=1783885291;
darn=lists.linux.dev;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:from:to:cc:subject:date
:message-id:reply-to;
bh=keNlL6A8+I5pnaNawbDLPC3Skjo9l1+hFMmFLmQIfDI=;
b=bpbfIuk52XpwtLb7/xtPKHvlspULaIQEP6ZsZHAv0ajQFQ/U3hmCEaJC0ew8EAUysZ
Q3IMwAZOkz0RFroHoUOHaR36OC+3fYwWXFfKvF/gKHbMDJCw+ttmxZQoIzISepZw8oEJ
YsjQlc0ANEX1ABMvIDm0pi4r4icPfdbvzxM7C7l5QIin7mkA6BvVzpzmsZqVhf04Ktu1
UcraCcs9mvXQF4OcD+R5Paf96bBloai9kQEInqi0NySzTsiTsW3o4uBWehFv6QJOiPsd
ghLvzgTDWHJ/6sA86ks+N3mdDQFTxfDQW7WZzD3xwk4IiOrvqhBhlUuc/zar7l+dJvyO
3iMw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20251104; t=1783280491; x=1783885291;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
:to:cc:subject:date:message-id:reply-to;
bh=keNlL6A8+I5pnaNawbDLPC3Skjo9l1+hFMmFLmQIfDI=;
b=A1j5OJxLzo5STgsgVlb+SSlR2NYkfnhzMqIfE1NqZPMcMz2N4V5Iun9RkzMnEXfyvv
5Q78uyDT3e7FtFUGKLEnxrxN5hoduEqKNmlAjYUeoh/yMrTIjfUqi7hqvo8eQwfZO/ef
9aoWH4w4rT5iZO3nEs6IM4tnCri6dm6QskG05wi2Te5QuaBMt1I6rgFGoGsdN5ZSMLSj
Co80bYCN3KN/QLbbFllWO+F/Pu2DiWqeXVPilaNSbfX3lqA1x2kgxXi4TgS5QcCEtN1K
174GqMDlBqrDyQuynHzDqoF9t8GSBRuy9Nkr4mEBZiuAbOB0JP2h2u96RvP1yCLDcc7E
xq2w==
X-Forwarded-Encrypted: i=1;
AHgh+Rrl1dOQ3EPOQ7lWfm8xtXRkGnVj3Q4lRgoR39kEZFl6UsI+8ycImv0LiPaZOhMB9Dx6T/DboTG0Xc2+FA==@lists.linux.dev
X-Gm-Message-State: AOJu0YzK185Ev3CUQDfIaqM+jwkdCzooIOejoMDCq2EodtCuwtQk7yAS
8dQdcoiN1+5aFwbe0JLEaFw4FKILbEmk0kxi60703i1Vp1T0ZhfrG9shoV4iwj2/j/CEtvVFttJ
aua38R7GbtvdAQ2J/t9Uk1nVsQ2qefBluYFx8+7Eg7lrEc0EIzcpRFdpGpChBBneihg==
X-Gm-Gg: AfdE7cm329bFepxgPz88hFgbJuSzwOjphTQxz3cwK6n4cIxhbSpYR6SKn70Lvu9YBE7
hvwjYqIjWkViarcySa8i8PqQ7g+DAU01QfjlOOdz74uNhQrz834XK+TB1lQU1+pQxxkSEuXMXNm
NPkOwPcKORP0GU/27N86jj/OLcwmw8nXnyYlfZrOODbpWfhLcbJBIXGME7rWQWzsJ8hMlfLsWDC
u6fc5FbTJ2u3j5SGGGsK42+ZbB3Wlqf2WUg5XCCbO/5M4litbp30misxkW7CTM5tVW1mHwnnwqm
2wOwV9/Pb6k1CDOszHYuXkrA4Z7Y2I+oog7nTthTcYZIXI5wyB7ZCAZVhZ9a1A54gbGiUEGXO/3
zFUEkyMSYBm41BudxBxNjMsCyDOn1+G+h9vkH1g==
X-Received: by 2002:a05:6a21:4cc6:b0:3bf:a0e5:99a5 with SMTP id
adf61e73a8af0-3c03e509089mr7554473637.47.1783280490843;
Sun, 05 Jul 2026 12:41:30 -0700 (PDT)
X-Received: by 2002:a05:6a21:4cc6:b0:3bf:a0e5:99a5 with SMTP id
adf61e73a8af0-3c03e509089mr7554455637.47.1783280490326;
Sun, 05 Jul 2026 12:41:30 -0700 (PDT)
Received: from hu-mojha-hyd.qualcomm.com ([202.46.23.25])
by smtp.gmail.com with ESMTPSA id
a92af1059eb24-13b3c7fa566sm40573417c88.4.2026.07.05.12.41.24
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Sun, 05 Jul 2026 12:41:30 -0700 (PDT)
From: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
To: devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org,
imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
linux-arm-msm@vger.kernel.org, linux-aspeed@lists.ozlabs.org,
linux-kernel@vger.kernel.org, linux-media@vger.kernel.org,
linux-mediatek@lists.infradead.org, linux-mmc@vger.kernel.org,
linux-remoteproc@vger.kernel.org, linux-sound@vger.kernel.org,
linux-staging@lists.linux.dev, linux-sunxi@lists.linux.dev,
linux-tegra@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,
openbmc@lists.ozlabs.org, sound-open-firmware@alsa-project.org
Cc: Konrad Dybcio <konradybcio@kernel.org>,
Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
Subject: [PATCH 42/42] ASoC: sprd: Use devm_of_reserved_mem_device_init()
Date: Mon, 6 Jul 2026 01:10:18 +0530
Message-ID: <20260705194019.2565498-10-mukesh.ojha@oss.qualcomm.com>
X-Mailer: git-send-email 2.53.0
In-Reply-To: <20260703193855.110619-1-mukesh.ojha@oss.qualcomm.com>
References: <20260703193855.110619-1-mukesh.ojha@oss.qualcomm.com>
Precedence: bulk
X-Mailing-List: linux-sunxi@lists.linux.dev
List-Id: <linux-sunxi.lists.linux.dev>
List-Subscribe: <mailto:linux-sunxi+subscribe@lists.linux.dev>
List-Unsubscribe: <mailto:linux-sunxi+unsubscribe@lists.linux.dev>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
X-Proofpoint-Spam-Info: AW1haW4tMjYwNzA1MDIxMiBTYWx0ZWRfX8qFIaJo7aPO1
H9YJplmGNnItkZMp7IzOo3beGGuI855iQ1psbO9m/qMUu+dGfzNPLQXXNW1BNgeVTV90PFKt2ZI
h6wPqp5aUd9pMMfzjeaibDCTsiDka08=
X-Proofpoint-GUID: cZgnU23XV2KMxwkjOjKBciELJ3u-opEK
X-Proofpoint-ORIG-GUID: cZgnU23XV2KMxwkjOjKBciELJ3u-opEK
X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzA1MDIxMiBTYWx0ZWRfX/Bddd6XvXSPi
my2Ty/mT6E+E8NirMl9rcGoJECAbZRRlONYeYZ5EOAnRN/Td+iRMm0c/ejbdhnqD6N2WFbmxgp9
DnPk2IunC4gUr0ArGvdPXSffceo/ofKh40WeEMlGLUFl57BdbhnvslCo86SHzkq+j8zUKqTCA9X
kVxhjJMSoOdtTQ346RaFihW4UOgIsYzurqm8C8/eithPhw7lqGSUauxYLuo9DUQUE1ZJ+bVygqT
sxkDubDOxJapANTSv7Jv/yZL6PTXhIvguVe1B7ffonPm+xlk/pube3fFNJKsOq5015uJXFU5ARd
hE18WeThSKHeUxyzDBZZwY6pPF+wwWczKDCByngPCFNwKswpT3o1bsCislC5EYITQwGcfCZ6wIi
KizOmM+MIfB296BGz9+JPU0YYdRXxXEFBfucariOD+0GScGZdBKX5RdJz6VulrlqFsIwdQTTMFT
CebzYCx6NXqIErtPAqA==
X-Authority-Analysis: v=2.4 cv=HLLz0Itv c=1 sm=1 tr=0 ts=6a4ab36b cx=c_pps
a=Qgeoaf8Lrialg5Z894R3/Q==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17
a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10
a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22
a=EUspDBNiAAAA:8 a=99hAX-h0IAisWkWT3OgA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10
a=x9snwWr2DeNwDh03kgHS:22
X-Proofpoint-Virus-Version: vendor=baseguard
engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49
definitions=2026-07-05_01,2026-07-03_01,2025-10-01_01
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0
bulkscore=0 priorityscore=1501 clxscore=1015 suspectscore=0 impostorscore=0
phishscore=0 adultscore=0 malwarescore=0 lowpriorityscore=0 spamscore=0
classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0
reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607050212
X-MORS-Enabled: yes
X-MORS-DOMAIN: patchwork.local
X-MORS-HOSTING: hosting172546
X-MORS-USER: hosting172546
X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?=
|
| Series |
of: reserved_mem: Introduce devres helpers and convert drivers
|
|
Commit Message
Mukesh Ojha
July 5, 2026, 7:40 p.m. UTC
Use the devres-managed devm_of_reserved_mem_device_init() to ensure
the reserved memory region is released on device removal, fixing a
missing cleanup — the driver has no remove function. Also drop the
now-unused local variable np.
Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
---
sound/soc/sprd/sprd-pcm-dma.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sound/soc/sprd/sprd-pcm-dma.c b/sound/soc/sprd/sprd-pcm-dma.c index cbf5bf82d96e..220f55d475af 100644 --- a/sound/soc/sprd/sprd-pcm-dma.c +++ b/sound/soc/sprd/sprd-pcm-dma.c @@ -459,10 +459,9 @@ static const struct snd_soc_component_driver sprd_soc_component = { static int sprd_soc_platform_probe(struct platform_device *pdev) { - struct device_node *np = pdev->dev.of_node; int ret; - ret = of_reserved_mem_device_init_by_idx(&pdev->dev, np, 0); + ret = devm_of_reserved_mem_device_init(&pdev->dev); if (ret) dev_warn(&pdev->dev, "no reserved DMA memory for audio platform device\n");