gpio: rcar: Fix runtime PM imbalance on error
[linux/fpc-iii.git] / drivers / media / platform / s5p-mfc / s5p_mfc_iommu.h
blob152a713fff78ca8be45b66fb3f930e5dc44d8e62
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Copyright (C) 2015 Samsung Electronics Co.Ltd
4 * Authors: Marek Szyprowski <m.szyprowski@samsung.com>
5 */
7 #ifndef S5P_MFC_IOMMU_H_
8 #define S5P_MFC_IOMMU_H_
10 #if defined(CONFIG_EXYNOS_IOMMU)
12 static inline bool exynos_is_iommu_available(struct device *dev)
14 return dev->archdata.iommu != NULL;
17 #else
19 static inline bool exynos_is_iommu_available(struct device *dev)
21 return false;
24 #endif
26 #endif /* S5P_MFC_IOMMU_H_ */