From a88a06c213576ab3a96f6d45a6d40338e49f3883 Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Sat, 28 May 2022 08:42:54 +0000 Subject: [PATCH] fsicom: Import dma buffer apis with namespace fsicom driver uses the dma buffer which were exported as EXPORT_SYMBOL_GPL() till K5.15. From k5.16, it is exported with namespace i.e. EXPORT_SYMBOL_NS_GPL(). This change needs to import namespace in fsicom driver for K5.16 onwards. Add support for this. Change-Id: I11a2dbe871c36dd467041866dce51cc0936331c4 Signed-off-by: Laxman Dewangan Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2719735 Reviewed-by: Rahul Bedarkar GVS: Gerrit_Virtual_Submit --- drivers/platform/tegra/tegra-fsicom.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/platform/tegra/tegra-fsicom.c b/drivers/platform/tegra/tegra-fsicom.c index 67a5ca3b..db6408cb 100644 --- a/drivers/platform/tegra/tegra-fsicom.c +++ b/drivers/platform/tegra/tegra-fsicom.c @@ -11,6 +11,7 @@ #include #include #include +#include #include @@ -254,6 +255,10 @@ static struct platform_driver fsicom_client = { module_platform_driver(fsicom_client); +#if LINUX_VERSION_CODE > KERNEL_VERSION(5, 15, 0) +MODULE_IMPORT_NS(DMA_BUF); +#endif + MODULE_DESCRIPTION("FSI-CCPLEX-COM driver"); MODULE_AUTHOR("Prashant Shaw "); MODULE_LICENSE("GPL v2");