mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
misc: mods: import module DMA_BUF if needed
Bug 4036660 Change-Id: I687d582151615b50d7402d26d2f64fe604fc1d7c Signed-off-by: Chris Dragan <kdragan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2890935 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
5535897d3d
commit
50850d5851
@@ -2,7 +2,7 @@
|
||||
/*
|
||||
* This file is part of NVIDIA MODS kernel driver.
|
||||
*
|
||||
* Copyright (c) 2014-2022, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2014-2023, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* NVIDIA MODS kernel driver is free software: you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License,
|
||||
@@ -25,6 +25,10 @@
|
||||
|
||||
#include "mods_internal.h"
|
||||
|
||||
#if KERNEL_VERSION(5, 4, 0) <= MODS_KERNEL_VERSION
|
||||
MODULE_IMPORT_NS(DMA_BUF);
|
||||
#endif
|
||||
|
||||
static struct device *dummy_device;
|
||||
|
||||
static bool dummy_device_registered;
|
||||
|
||||
Reference in New Issue
Block a user