diff options
author | Robin Murphy <Robin.Murphy@arm.com> | 2016-04-07 20:42:05 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2016-05-09 16:33:29 +0300 |
commit | 53c92d793395fdab9edbd2f79b084bb6b2e6ae79 (patch) | |
tree | 57a3dd2ec3c8c3b280adab8dbe400c8c19345b40 /drivers/of | |
parent | 3c3e8943ac6f36ca5d18ca61b30634fb560b4ebb (diff) | |
download | linux-53c92d793395fdab9edbd2f79b084bb6b2e6ae79.tar.xz |
iommu: of: enforce const-ness of struct iommu_ops
As a set of driver-provided callbacks and static data, there is no
compelling reason for struct iommu_ops to be mutable in core code, so
enforce const-ness throughout.
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/of')
-rw-r--r-- | drivers/of/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/device.c b/drivers/of/device.c index e5f47cec75f3..fd5cfad7c403 100644 --- a/drivers/of/device.c +++ b/drivers/of/device.c @@ -88,7 +88,7 @@ void of_dma_configure(struct device *dev, struct device_node *np) int ret; bool coherent; unsigned long offset; - struct iommu_ops *iommu; + const struct iommu_ops *iommu; /* * Set default coherent_dma_mask to 32 bit. Drivers are expected to |