Skip to contentSkip to conversation

iommu/fsl_pamu: Fix compile error after adding set_platform_dma_ops

PATCH In review Joerg Roedel 2 participants 2 messages Jan 13, 2023 IOMMU

lore
Share & tools
lore

Joerg Roedel

author maintainer
#0 lore raw

PATCH 1/1 iommu/fsl_pamu: Fix compile error after adding set_platform_dma_ops

From: Joerg Roedel <[email protected]>

The struct initializer for set_platform_dma_ops uses a semicolon as separator where a comma is required. Fix the compile error by using the correct separator.

Fixes c1fe9119ee70 ("iommu: Add set_platform_dma_ops callbacks")
---
 drivers/iommu/fsl_pamu_domain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/fsl_pamu_domain.c +1 -1
index e123161c211a..bce372297099 100644
@@ -452,7 +452,7 @@ static const struct iommu_ops fsl_pamu_ops = {
 	.domain_alloc	= fsl_pamu_domain_alloc,
 	.probe_device	= fsl_pamu_probe_device,
 	.device_group   = fsl_pamu_device_group,
-	.set_platform_dma_ops = fsl_pamu_set_platform_dma;
+	.set_platform_dma_ops = fsl_pamu_set_platform_dma,
 	.default_domain_ops = &(const struct iommu_domain_ops) {
 		.attach_dev	= fsl_pamu_attach_device,
 		.iova_to_phys	= fsl_pamu_iova_to_phys,
Signature · 1 line
2.39.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Joerg Roedel

From: Joerg Roedel <[email protected]>

The struct initializer for set_platform_dma_ops uses a semicolon as separator where a comma is required. Fix the compile error by using the correct separator.

Fixes c1fe9119ee70 ("iommu: Add set_platform_dma_ops callbacks")
---
 drivers/iommu/fsl_pamu_domain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

I'd probably just squash these :\

Jason