mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
misc: mods: add release function
Add dummy release function to prevent an error printed during module unload. Bug 200344064 Change-Id: Ifa92600e88c4152327079c37ec9ed581179c0860 Signed-off-by: Chris Dragan <kdragan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1551847 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
This commit is contained in:
committed by
Laxman Dewangan
parent
a0c3b48960
commit
4ba7812b29
@@ -27,6 +27,10 @@
|
|||||||
|
|
||||||
#include "mods_internal.h"
|
#include "mods_internal.h"
|
||||||
|
|
||||||
|
static void dummy_release(struct device *dev)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
static struct device_dma_parameters dma_parms = {
|
static struct device_dma_parameters dma_parms = {
|
||||||
.max_segment_size = UINT_MAX,
|
.max_segment_size = UINT_MAX,
|
||||||
};
|
};
|
||||||
@@ -36,6 +40,7 @@ static struct platform_device dummy_device = {
|
|||||||
.id = -1,
|
.id = -1,
|
||||||
.dev = {
|
.dev = {
|
||||||
.dma_parms = &dma_parms,
|
.dma_parms = &dma_parms,
|
||||||
|
.release = dummy_release,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user