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 7D9BB3B79C; Tue, 14 May 2024 11:14:06 +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=1715685246; cv=none; b=ZS3eKTa2KuyYVgW5WCX6gw4Oh7BtC7iUbjk1MUsK4oKV7AI+RI03aLwRPhywYrIFlUPO0Pb0pucvuA+5NOBZ4Evst/LRPjSlt3OTUmVqjxCzADbjGpSxRNic1j2yARurvk8ySF1ytt0KCvOrFPcJG8rySfUMBaIBAqvYnr73XWQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715685246; c=relaxed/simple; bh=l1rLnn47+7Fhjb4P9mams9MPelmxQJ1aIzzwSw9X3iI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=W1pYwafI096T2rgi3ea+OQXsqdayGouMCGO55iLiNRIWiNFnthqUeCmlA+YHWLlzoKOWXTWVx1pVVMgDzuxD4Z0K1WJOQNzMxJYRaP1QnfBH/6qcsSQgD1dttUk/2JU1TwZQLiQZsO9D59vxr2BDnOx3t9Lg0c3N1v9BT9CCkcc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Sa65u3Ge; 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="Sa65u3Ge" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9CE94C2BD10; Tue, 14 May 2024 11:14:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715685246; bh=l1rLnn47+7Fhjb4P9mams9MPelmxQJ1aIzzwSw9X3iI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Sa65u3GemMFdxf23bOSZ9JgFDp2NQVcMq9V6oDwIDq0hqDffNU0GEz8u1cHAR7jjJ biGU8KWrDebv+23fVKfuM2e1gxzOObsejMA1a516LLLsgilR2Ftm6DZQV7N3gennFo PDvCO/fAiWIBjTPIUGyyLkykbitgPWGOr7TvN00A= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Krzysztof Kozlowski , Joerg Roedel , Sasha Levin Subject: [PATCH 6.6 157/301] iommu: mtk: fix module autoloading Date: Tue, 14 May 2024 12:17:08 +0200 Message-ID: <20240514101038.185301347@linuxfoundation.org> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240514101032.219857983@linuxfoundation.org> References: <20240514101032.219857983@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Krzysztof Kozlowski [ Upstream commit 7537e31df80cb58c27f3b6fef702534ea87a5957 ] Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from of_device_id table. Signed-off-by: Krzysztof Kozlowski Link: https://lore.kernel.org/r/20240410164109.233308-1-krzk@kernel.org Signed-off-by: Joerg Roedel Signed-off-by: Sasha Levin --- drivers/iommu/mtk_iommu.c | 1 + drivers/iommu/mtk_iommu_v1.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/iommu/mtk_iommu.c b/drivers/iommu/mtk_iommu.c index fab6c347ce578..de698463e94ad 100644 --- a/drivers/iommu/mtk_iommu.c +++ b/drivers/iommu/mtk_iommu.c @@ -1773,6 +1773,7 @@ static const struct of_device_id mtk_iommu_of_ids[] = { { .compatible = "mediatek,mt8365-m4u", .data = &mt8365_data}, {} }; +MODULE_DEVICE_TABLE(of, mtk_iommu_of_ids); static struct platform_driver mtk_iommu_driver = { .probe = mtk_iommu_probe, diff --git a/drivers/iommu/mtk_iommu_v1.c b/drivers/iommu/mtk_iommu_v1.c index 8a0a5e5d049f4..f1754efcfe74e 100644 --- a/drivers/iommu/mtk_iommu_v1.c +++ b/drivers/iommu/mtk_iommu_v1.c @@ -600,6 +600,7 @@ static const struct of_device_id mtk_iommu_v1_of_ids[] = { { .compatible = "mediatek,mt2701-m4u", }, {} }; +MODULE_DEVICE_TABLE(of, mtk_iommu_v1_of_ids); static const struct component_master_ops mtk_iommu_v1_com_ops = { .bind = mtk_iommu_v1_bind, -- 2.43.0