summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/mtk_iommu.h
diff options
context:
space:
mode:
authorRussell King2016-10-19 12:30:34 +0200
committerJoerg Roedel2016-11-10 12:25:16 +0100
commit00c7c81f7b49d9b739690c45d9986474d52c6240 (patch)
tree34c02c5269cbc9ff2eafa699c703909396b58f64 /drivers/iommu/mtk_iommu.h
parentiommu/mediatek: Convert M4Uv1 to iommu_fwspec (diff)
downloadkernel-qcow2-linux-00c7c81f7b49d9b739690c45d9986474d52c6240.tar.gz
kernel-qcow2-linux-00c7c81f7b49d9b739690c45d9986474d52c6240.tar.xz
kernel-qcow2-linux-00c7c81f7b49d9b739690c45d9986474d52c6240.zip
iommu/mediatek: Convert DT component matching to component_match_add_release()
Convert DT component matching to use component_match_add_release(). Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/mtk_iommu.h')
-rw-r--r--drivers/iommu/mtk_iommu.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/iommu/mtk_iommu.h b/drivers/iommu/mtk_iommu.h
index f59609f20270..50177f738e4e 100644
--- a/drivers/iommu/mtk_iommu.h
+++ b/drivers/iommu/mtk_iommu.h
@@ -54,6 +54,11 @@ static inline int compare_of(struct device *dev, void *data)
return dev->of_node == data;
}
+static inline void release_of(struct device *dev, void *data)
+{
+ of_node_put(data);
+}
+
static inline int mtk_iommu_bind(struct device *dev)
{
struct mtk_iommu_data *data = dev_get_drvdata(dev);