| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2015 Samsung Electronics Co.Ltd |
|---|
| 3 | 4 | * 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. |
|---|
| 9 | 5 | */ |
|---|
| 10 | 6 | |
|---|
| 11 | 7 | #ifndef S5P_MFC_IOMMU_H_ |
|---|
| .. | .. |
|---|
| 13 | 9 | |
|---|
| 14 | 10 | #if defined(CONFIG_EXYNOS_IOMMU) |
|---|
| 15 | 11 | |
|---|
| 12 | +#include <linux/iommu.h> |
|---|
| 13 | + |
|---|
| 16 | 14 | static inline bool exynos_is_iommu_available(struct device *dev) |
|---|
| 17 | 15 | { |
|---|
| 18 | | - return dev->archdata.iommu != NULL; |
|---|
| 16 | + return dev_iommu_priv_get(dev) != NULL; |
|---|
| 19 | 17 | } |
|---|
| 20 | 18 | |
|---|
| 21 | 19 | #else |
|---|