mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
misc: mods: Fix build for Linux v6.11
In Linux v6.11, the 'platform_driver' structure 'remove' callback was updated to return void instead of 'int'. Update the MODS drivers as necessary to fix this. Note that we can simply remove the mods_dmabuf 'remove' function because it does nothing. Bug 4749580 Change-Id: I8ac05a7b713916b9aca1694ca828682808df3287 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3235514 GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Chris Dragan <kdragan@nvidia.com> Reviewed-by: Carl Dong <carld@nvidia.com>
This commit is contained in:
@@ -516,12 +516,20 @@ static int tegra_dma_driver_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if KERNEL_VERSION(6, 11, 0) <= MODS_KERNEL_VERSION
|
||||
static void tegra_dma_driver_remove(struct platform_device *pdev)
|
||||
{
|
||||
put_device(&pdev->dev);
|
||||
mods_tegra_dma_dev = NULL;
|
||||
}
|
||||
#else
|
||||
static int tegra_dma_driver_remove(struct platform_device *pdev)
|
||||
{
|
||||
put_device(&pdev->dev);
|
||||
mods_tegra_dma_dev = NULL;
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
static const struct of_device_id of_ids[] = {
|
||||
{ .compatible = "nvidia,mods_tegra_dma" },
|
||||
|
||||
Reference in New Issue
Block a user