forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/media/platform/s5p-mfc/s5p_mfc_iommu.h
....@@ -1,11 +1,7 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Copyright (C) 2015 Samsung Electronics Co.Ltd
34 * Authors: Marek Szyprowski <m.szyprowski@samsung.com>
4
- *
5
- * This program is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU General Public License as published by the
7
- * Free Software Foundation; either version 2 of the License, or (at your
8
- * option) any later version.
95 */
106
117 #ifndef S5P_MFC_IOMMU_H_
....@@ -13,9 +9,11 @@
139
1410 #if defined(CONFIG_EXYNOS_IOMMU)
1511
12
+#include <linux/iommu.h>
13
+
1614 static inline bool exynos_is_iommu_available(struct device *dev)
1715 {
18
- return dev->archdata.iommu != NULL;
16
+ return dev_iommu_priv_get(dev) != NULL;
1917 }
2018
2119 #else