From 6778948f9de86c3cfaf36725a7c87dcff9ba247f Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Mon, 11 Dec 2023 08:20:59 +0000 Subject: [PATCH] kernel_5.10 no rt --- kernel/drivers/media/platform/s5p-mfc/s5p_mfc_iommu.h | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/kernel/drivers/media/platform/s5p-mfc/s5p_mfc_iommu.h b/kernel/drivers/media/platform/s5p-mfc/s5p_mfc_iommu.h index 7666792..1a32266 100644 --- a/kernel/drivers/media/platform/s5p-mfc/s5p_mfc_iommu.h +++ b/kernel/drivers/media/platform/s5p-mfc/s5p_mfc_iommu.h @@ -1,11 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2015 Samsung Electronics Co.Ltd * Authors: Marek Szyprowski <m.szyprowski@samsung.com> - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 2 of the License, or (at your - * option) any later version. */ #ifndef S5P_MFC_IOMMU_H_ @@ -13,9 +9,11 @@ #if defined(CONFIG_EXYNOS_IOMMU) +#include <linux/iommu.h> + static inline bool exynos_is_iommu_available(struct device *dev) { - return dev->archdata.iommu != NULL; + return dev_iommu_priv_get(dev) != NULL; } #else -- Gitblit v1.6.2