This commit is contained in:
Andy Ritger
2022-11-10 08:39:33 -08:00
parent 7c345b838b
commit 758b4ee818
1323 changed files with 262135 additions and 60754 deletions

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: Copyright (c) 2015-2019 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-FileCopyrightText: Copyright (c) 2015-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a
@@ -101,7 +101,7 @@ static void nvlink_permissions_exit(void)
return;
}
NV_REMOVE_PROC_ENTRY(nvlink_permissions);
proc_remove(nvlink_permissions);
nvlink_permissions = NULL;
}
@@ -133,7 +133,7 @@ static void nvlink_procfs_exit(void)
return;
}
NV_REMOVE_PROC_ENTRY(nvlink_procfs_dir);
proc_remove(nvlink_procfs_dir);
nvlink_procfs_dir = NULL;
}
@@ -207,8 +207,6 @@ static int nvlink_fops_release(struct inode *inode, struct file *filp)
nvlink_print(NVLINK_DBG_INFO, "nvlink driver close\n");
WARN_ON(private == NULL);
mutex_lock(&nvlink_drvctx.lock);
if (private->capability_fds.fabric_mgmt > 0)
@@ -306,9 +304,6 @@ static const struct file_operations nvlink_fops = {
.owner = THIS_MODULE,
.open = nvlink_fops_open,
.release = nvlink_fops_release,
#if defined(NV_FILE_OPERATIONS_HAS_IOCTL)
.ioctl = nvlink_fops_ioctl,
#endif
.unlocked_ioctl = nvlink_fops_unlocked_ioctl,
};