grant-dma-iommu.c (a23e1966932464e1c5226cb9ac4ce1d5fc10ba22) grant-dma-iommu.c (e70140ba0d2b1a30467d4af6bcfe761327b9ec95)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Stub IOMMU driver which does nothing.
4 * The main purpose of it being present is to reuse generic IOMMU device tree
5 * bindings by Xen grant DMA-mapping layer.
6 *
7 * Copyright (C) 2022 EPAM Systems Inc.
8 */

--- 51 unchanged lines hidden (view full) ---

60}
61
62static struct platform_driver grant_dma_iommu_driver = {
63 .driver = {
64 .name = "grant-dma-iommu",
65 .of_match_table = grant_dma_iommu_of_match,
66 },
67 .probe = grant_dma_iommu_probe,
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Stub IOMMU driver which does nothing.
4 * The main purpose of it being present is to reuse generic IOMMU device tree
5 * bindings by Xen grant DMA-mapping layer.
6 *
7 * Copyright (C) 2022 EPAM Systems Inc.
8 */

--- 51 unchanged lines hidden (view full) ---

60}
61
62static struct platform_driver grant_dma_iommu_driver = {
63 .driver = {
64 .name = "grant-dma-iommu",
65 .of_match_table = grant_dma_iommu_of_match,
66 },
67 .probe = grant_dma_iommu_probe,
68 .remove_new = grant_dma_iommu_remove,
68 .remove = grant_dma_iommu_remove,
69};
70
71static int __init grant_dma_iommu_init(void)
72{
73 struct device_node *iommu_np;
74
75 iommu_np = of_find_matching_node(NULL, grant_dma_iommu_of_match);
76 if (!iommu_np)
77 return 0;
78
79 of_node_put(iommu_np);
80
81 return platform_driver_register(&grant_dma_iommu_driver);
82}
83subsys_initcall(grant_dma_iommu_init);
69};
70
71static int __init grant_dma_iommu_init(void)
72{
73 struct device_node *iommu_np;
74
75 iommu_np = of_find_matching_node(NULL, grant_dma_iommu_of_match);
76 if (!iommu_np)
77 return 0;
78
79 of_node_put(iommu_np);
80
81 return platform_driver_register(&grant_dma_iommu_driver);
82}
83subsys_initcall(grant_dma_iommu_init);