diff options
author | Joerg Roedel <jroedel@suse.de> | 2016-08-09 09:46:46 -0400 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2016-08-09 09:46:46 -0400 |
commit | 9a8a5dcf20eee254ce490f12d579ef80ee776eb6 (patch) | |
tree | ec7c0f6052a047ab6aba3545faec2ef6135dabe7 /drivers/iommu/mtk_iommu.h | |
parent | 29b4817d4018df78086157ea3a55c1d9424a7cfc (diff) |
iommu/mediatek: Mark static functions in headers inline
This was an oversight while merging these functions. Fix it.
Cc: Honghui Zhang <honghui.zhang@mediatek.com>
Fixes: 9ca340c98c0d ('iommu/mediatek: move the common struct into header file')
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/mtk_iommu.h')
-rw-r--r-- | drivers/iommu/mtk_iommu.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/iommu/mtk_iommu.h b/drivers/iommu/mtk_iommu.h index 9ed0a8462ccf..3dab13b4a211 100644 --- a/drivers/iommu/mtk_iommu.h +++ b/drivers/iommu/mtk_iommu.h | |||
@@ -55,19 +55,19 @@ struct mtk_iommu_data { | |||
55 | bool enable_4GB; | 55 | bool enable_4GB; |
56 | }; | 56 | }; |
57 | 57 | ||
58 | static int compare_of(struct device *dev, void *data) | 58 | static inline int compare_of(struct device *dev, void *data) |
59 | { | 59 | { |
60 | return dev->of_node == data; | 60 | return dev->of_node == data; |
61 | } | 61 | } |
62 | 62 | ||
63 | static int mtk_iommu_bind(struct device *dev) | 63 | static inline int mtk_iommu_bind(struct device *dev) |
64 | { | 64 | { |
65 | struct mtk_iommu_data *data = dev_get_drvdata(dev); | 65 | struct mtk_iommu_data *data = dev_get_drvdata(dev); |
66 | 66 | ||
67 | return component_bind_all(dev, &data->smi_imu); | 67 | return component_bind_all(dev, &data->smi_imu); |
68 | } | 68 | } |
69 | 69 | ||
70 | static void mtk_iommu_unbind(struct device *dev) | 70 | static inline void mtk_iommu_unbind(struct device *dev) |
71 | { | 71 | { |
72 | struct mtk_iommu_data *data = dev_get_drvdata(dev); | 72 | struct mtk_iommu_data *data = dev_get_drvdata(dev); |
73 | 73 | ||