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 7433E2F12AC; Fri, 17 Oct 2025 14:57:54 +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=1760713074; cv=none; b=DIoKgqBChY+r/GdFKkYxxU+T31L8+4lRkOlN/psRnoldmgMOwwO29TtyZ20KjfIoOaYv/1luM5OcplpphSM+oEbAxPeAC5EJ1YMMWACwpcE94AnZX8lMnsHC8zRplNr5wdKdEq7KCy98O799F79GW3QN2B5fI3tFSgBelIkoLIU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760713074; c=relaxed/simple; bh=IamA4PPTc1HPdRAeHJDpwI+sKSiY1Juri4rJ2C8Swno=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=eQzBE0rZwuPLLTHcYE22RS9oGFcOfgnTBZRagB3SqX0wiPS46AlKYLTROf1xgXNOj7AYmbyXwLZYbdrkIKVVGq62GLpLmNfpAXQAbpVXPZQh7spvbfxfX7sa+qX+pMQzEy1ug5TWaV7R6qga+jigOIembPFX64CoqNjM4ceMPGw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XRGbzbhZ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="XRGbzbhZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4641C4CEFE; Fri, 17 Oct 2025 14:57:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1760713074; bh=IamA4PPTc1HPdRAeHJDpwI+sKSiY1Juri4rJ2C8Swno=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XRGbzbhZwNi54SYmKLOSgbRqCxL6o4cUe4LTqbEAyRsxf+zLashAbERU1XA/eDsmS jUzFIDM9lqqdtWIqOBxW2GZKw3R8zMrFKzbcxO7NGuErSi1RHpPkENmG2SF/KkExdG VJ1gX3wOa2wmjUsnLuaXnszweDYvaRA+/7090skk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Harini T , Peng Fan , Jassi Brar , Sasha Levin Subject: [PATCH 6.1 038/168] mailbox: zynqmp-ipi: Remove redundant mbox_controller_unregister() call Date: Fri, 17 Oct 2025 16:51:57 +0200 Message-ID: <20251017145130.422039345@linuxfoundation.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251017145129.000176255@linuxfoundation.org> References: <20251017145129.000176255@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Harini T [ Upstream commit 341867f730d3d3bb54491ee64e8b1a0c446656e7 ] The controller is registered using the device-managed function 'devm_mbox_controller_register()'. As documented in mailbox.c, this ensures the devres framework automatically calls mbox_controller_unregister() when device_unregister() is invoked, making the explicit call unnecessary. Remove redundant mbox_controller_unregister() call as device_unregister() handles controller cleanup. Fixes: 4981b82ba2ff ("mailbox: ZynqMP IPI mailbox controller") Signed-off-by: Harini T Reviewed-by: Peng Fan Signed-off-by: Jassi Brar Signed-off-by: Sasha Levin --- drivers/mailbox/zynqmp-ipi-mailbox.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mailbox/zynqmp-ipi-mailbox.c b/drivers/mailbox/zynqmp-ipi-mailbox.c index d097f45b0e5f5..406821a78d510 100644 --- a/drivers/mailbox/zynqmp-ipi-mailbox.c +++ b/drivers/mailbox/zynqmp-ipi-mailbox.c @@ -619,7 +619,6 @@ static void zynqmp_ipi_free_mboxes(struct zynqmp_ipi_pdata *pdata) for (; i >= 0; i--) { ipi_mbox = &pdata->ipi_mboxes[i]; if (ipi_mbox->dev.parent) { - mbox_controller_unregister(&ipi_mbox->mbox); if (device_is_registered(&ipi_mbox->dev)) device_unregister(&ipi_mbox->dev); } -- 2.51.0